예제 #1
0
 /**
  * 公告中心首页
  *
  * @date   2015-10-10
  * @return [type]     [description]
  */
 public function index()
 {
     $notices = Notice::orderBy('created_at', 'desc')->paginate(10);
     // dd(count($notices));
     return view('backend.systems.notices', ['notices' => $notices]);
 }
 /**
  * Return a view of all the club notices
  * @return [type] [description]
  */
 public function view_notices()
 {
     $notices = Notice::orderBy('created_at')->get();
     return view('admin.viewnotices', compact('notices'));
 }
 /**
  * Display a list of club notices.
  *
  * @return Response
  */
 public function index()
 {
     $notices = Notice::orderBy('created_at', 'DESC')->get();
     return view('notices.index', compact('notices'));
 }