Skip to content

Commit

Permalink
Don't fetch pages in web controller
Browse files Browse the repository at this point in the history
  • Loading branch information
nWidart committed Sep 11, 2017
1 parent 1153cca commit 98e919c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Modules/Page/Http/Controllers/Admin/PageController.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@ public function __construct(PageRepository $page)

public function index()
{
$pages = $this->page->all();

return view('page::admin.index', compact('pages'));
return view('page::admin.index');
}

/**
Expand Down

0 comments on commit 98e919c

Please sign in to comment.