classes/Controllers/Base.php
public function index()
    {
        // Look for overriden views
        $this->overrideViews();

        // Get models to show
        $results = $this->makeIndexQuery()->paginate($this->perPage());

        // Render the view using the `listing` builder
        $listing = Listing::createFromController($this, $results);
        if ($this->parent) {
            $listing->parent($this->parent);

            // The layout header may have a many to many autocomplete
            $this->layout->with($this->autocompleteViewVars());
        }

        // Render view
        return $this->populateView($listing);
    }
public function index()
    {
        // Look for overriden views
        $this->overrideViews();

        // Get models to show
        $results = $this->makeIndexQuery()->paginate($this->perPage());

        // Render the view using the `listing` builder
        $listing = Listing::createFromController($this, $results);
        if ($this->parent) {
            $listing->parent($this->parent);

            // The layout header may have a many to many autocomplete
            $this->layout->with($this->autocompleteViewVars());
        }

        // Render view
        return $this->populateView($listing);
    }
public function index ( ) { // Look for overriden views $ this -> overrideViews ( ) ; // Get models to show $ results = $ this -> makeIndexQuery ( ) -> paginate ( $ this -> perPage ( ) ) ; // Render the view using the `listing` builder $ listing = Listing :: createFromController ( $ this , $ results ) ; if ( $ this -> parent ) { $ listing -> parent ( $ this -> parent ) ; // The layout header may have a many to many autocomplete $ this -> layout -> with ( $ this -> autocompleteViewVars ( ) ) ; } // Render view return $ this -> populateView ( $ listing ) ; }
Show an index, listing page.  Sets view via the layout.

@return Illuminate\Contracts\View\Factory
Show an index listing page . Sets view via the layout .