Ejemplo n.º 1
0
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     return view("admin.pages.list", ["pages" => Page::orderBy("id", "desc")->paginate(10)]);
 }
Ejemplo n.º 2
0
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     $pages = Page::orderBy('created_at', 'DESC')->get();
     return view('pages.index', compact('pages'));
 }