示例#1
0
 /**
  * Display a listing of the resource.
  * GET /blog
  *
  * @return Response
  */
 public function getIndex()
 {
     $mostRecommended = \App\Blog::mostRecommended();
     $last = \App\Blog::lastPosts();
     //echo'<pre>';
     //dd($mostRecommended);
     return View('blog::index', array('title' => "Welcome ", 'mostRecommended' => $mostRecommended, 'last' => $last));
 }