Ejemplo n.º 1
0
 /**
  * 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'));
 }
Ejemplo n.º 2
0
 /**
  * Display a listing of the News.
  *
  * @return Response
  */
 public function index()
 {
     $newsList = News::latest()->get();
     return view('admin.news.list', compact('newsList'));
 }