/**
  * Show notifications
  */
 public function showNotification()
 {
     $notifications = Notification::orderBy('id', 'DESC')->take(10)->get();
     return view('index', compact('notifications'));
 }
示例#2
0
 /**
  * 列表页
  *
  * @return Response
  */
 public function index()
 {
     $list = Notification::orderBy('id', 'desc')->paginate(100);
     return View::make('admin/notifications/index', ['list' => $list]);
 }