예제 #1
0
 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function destroy(Request $request)
 {
     foreach ($request->input('to_delete') as $item_id) {
         // delete file if exists
         $image = Venue::getImage($item_id);
         $this->deleteImage('venues', $image);
         Venue::destroy($item_id);
     }
     Session::flash('message', 'Lugar de encuentro borrado Correctamente');
     return Redirect::to('venues');
 }