/**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function edit($id)
 {
     $gallery = Gallery::findOrFail($id);
     //$photos = $gallery->photos(); This is the right one
     //This is for debugging
     $photos = Photo::all();
     return \View::make('laravel-photogallery::galleries.edit', ['gallery' => $gallery, 'photos' => $photos])->nest('form', 'laravel-photogallery::forms.create-photoingallery', ['gallery' => $gallery, 'photos' => $photos]);
 }
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     return \View::make('laravel-photogallery::photos.index', ['photos' => Photo::all()]);
 }