/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index(AlbumsRepo $album_repo) { $albums = $album_repo->getAll(); // return $albums; return view('admin.albums.index', compact('albums')); }
/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index(AlbumsRepo $album_repo) { $albums = $album_repo->getAll(); return view('home.index', compact('albums')); }