Don't fetch pages in web controller

parent 1153ccac
...@@ -24,9 +24,7 @@ class PageController extends AdminBaseController ...@@ -24,9 +24,7 @@ class PageController extends AdminBaseController
public function index() public function index()
{ {
$pages = $this->page->all(); return view('page::admin.index');
return view('page::admin.index', compact('pages'));
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment