/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $spaceships = Spaceships::latest('created_at')->paginate(10); $meta_title = 'Космические корабли'; $meta_desc = 'Найти космический корабль'; return view('spaceships.index', compact('spaceships', 'meta_title', 'meta_desc')); }
/** * Show main Admin page * @return View */ public function index() { $spaceships = Spaceships::latest('created_at')->paginate(5); return view('admin.index', compact('spaceships')); }