Exemplo n.º 1
0
 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function destroyImage($id)
 {
     //
     $image = Gallery::find($id);
     File::delete('files/gellery/' . $image->filename);
     File::delete('files/gellery/small/' . $image->filename);
     $image->delete();
 }