/** * 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 = Company::getImage($item_id); $this->deleteImage('venues', $image); Company::destroy($item_id); } Session::flash('message', 'Compañía borrada Correctamente'); return Redirect::to('companies'); }