/** * @param Album $album * @return \Illuminate\View\View */ public function index(Album $album) { $albums = $album->all(); return view('admin.albums.index', compact('albums')); }
/** * Show the form for editing the specified resource. * * @param int $id * @return Response */ public function edit($id, Photo $photo, Album $album) { return view('admin.photos.edit')->with('photo', $photo->find($id))->with('albums', $album->all()); }