public function index() { $pages = Page::latest()->paginate(20); return view("backend.page.index", ["pages" => $pages]); }
/** * Show all the pages. * * @return response */ public function index() { $pages = Page::latest()->get(); return view('pages.index', compact('pages')); }
/** * Show the application dashboard. * * @return \Illuminate\Http\Response */ public function index() { $products = Product::stickyFirst()->latest()->paginate(35); $pages = Page::latest()->take(5)->get(); return view('home', compact('products', 'pages')); }
/** * Show pages * * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View */ public function showPages() { $pages = Page::latest()->paginate(); return view('pages.index', compact('pages')); }