public function index()
    {
        save_resource_url();

        $items = Photo::with('photoable')->get();

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

        $items = Photo::with('photoable')->get();

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

@return Response
Display a listing of photo .