Example #1
0
 /**
  * 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));
 }
Example #3
0
 /**
  * Show the application dashboard to the user.
  *
  * @return Response
  */
 public function index()
 {
     return view('home')->with('pages', Page::all())->with('articles', Article::all());
 }