/** * Display the specified albums' photos. * * @param int $id Id of the album * @return \Illuminate\View\View */ public function show($id) { $album = $this->album->findOrFail($id); $albumPhotos = $this->photo->findByAlbumId($id); $this->layout->content = \View::make('gallery::album', array('album' => $album, 'albumPhotos' => $albumPhotos)); }