コード例 #1
0
ファイル: HomeController.php プロジェクト: danielchikaka/osh
 /**
  * Show the application dashboard to the user.
  *
  * @return Response
  */
 public function index()
 {
     $images = Gallery::slide();
     $news = News::latest(4);
     $pubs = Publication::latest();
     $trainings = Training::latest();
     $bio = Biography::orderBy('created_at', 'DESC')->first();
     return view('index', compact('images', 'news', 'pubs', 'bio', 'trainings'));
 }