app/View/Components/Website/Products/ProductGallery.php
/**
     * Get the view / contents that represent the component.
     *
     * @return View|\Closure|string
     */
Get the view / contents that represent the component.
@return View|\Closure|string
Get the view / contents that represent the component . @return View| \ Closure|string
public function render()
    {
        return ($this->item->hasGallery())
                ? view('components.website.products.product-gallery')
                : view('components.website.products.product-image');
    }
public function render ( ) { return ( $ this -> item -> hasGallery ( ) ) ? view ( 'components.website.products.product-gallery' ) : view ( 'components.website.products.product-image' ) ; }
Get the view / contents that represent the component.
Get the view / contents that represent the component .