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