/** * Show the application dashboard to the user. * * @return Response */ public function index() { return view('home')->withPages(Page::all()); }
/** * Show the application dashboard to the user. * * @return Response */ public function index() { return view('home')->with('pages', Page::all())->with('articles', Article::all()); }