예제 #1
0
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index(News $NewsModel, Publications $PublicationsModel)
 {
     $news = $NewsModel->getLatestThreeNews();
     $publications = $PublicationsModel->getLatestThreePublications();
     return view('welcome', ['news' => $news, 'publications' => $publications]);
 }