public function index()
    {
        save_resource_url();

        $items = PhotoAlbum::with('photos')->get();

        return $this->view('titan::photos.albums.index')->with('items', $items);
    }
public function index()
    {
        save_resource_url();

        $items = PhotoAlbum::with('photos')->get();

        return $this->view('titan::photos.albums.index')->with('items', $items);
    }
public function index ( ) { save_resource_url ( ) ; $ items = PhotoAlbum :: with ( 'photos' ) -> get ( ) ; return $ this -> view ( 'titan::photos.albums.index' ) -> with ( 'items' , $ items ) ; }
Display a listing of photo_album.

@return Response
Display a listing of photo_album .