예제 #1
0
 public function index()
 {
     $news = News::take(6)->orderBy('created_at', 'desc')->get();
     $notices = Notices::take(6)->orderBy('created_at', 'desc')->get();
     return View::make('home.main')->with('news', $news)->with('notices', $notices);
 }