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