/**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     //
     $images = Image::where('page_id', '=', $_GET)->get();
     $possible_photos = PossiblePhoto::orderBy('created_at', 'ASC')->get();
     return view('images.index', compact('images', 'possible_photos'));
 }
 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function destroy(PossiblePhoto $possible_photos)
 {
     //
     if ($possible_photos->delete()) {
         return redirect('fotos_posibles');
     }
 }