Example #1
0
 public static function latest($n = 4)
 {
     return QuickLink::orderBy('created_at', 'DESC')->limit($n)->get();
 }
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function admin()
 {
     $quicklinks = QuickLink::orderBy('created_at', 'DESC')->get();
     return view('quicklinks.backend.index', compact('quicklinks'));
 }