/** * Remove the specified resource from storage. * * @param int $id * @return \Illuminate\Http\Response */ public function destroy($id) { Brand::destroy($id); return; }
public function branddestroy($id) { Brand::destroy($id); Session::flash('flash_message', 'Well done! Đã xóa.'); Session::flash('flash_type', 'alert-success'); return \Redirect::route('brands'); }
/** * Remove the specified resource from storage. * * @param int $id * @return \Illuminate\Http\Response */ public function destroy($id) { // Brand::destroy($id); return redirect()->route('admin.brand.index'); }
public function destroy(Request $request, $id) { empty($id) && !empty($request->input('id')) && ($id = $request->input('id')); $id = (array) $id; foreach ($id as $v) { $brand = Brand::destroy($v); } return $this->success('', count($id) > 5, compact('id')); }
/** * Remove the specified resource from storage. * * @param int $id * @return Response */ public function destroy($id) { if (Brand::destroy($id)) { return $this->index(); } }
/** * Remove the specified resource from storage. * * @param int $id * @return Response */ public function destroy($id) { Brand::destroy($id); }
public function destroy(Request $request, $id) { empty($id) && !empty($request->input('id')) && ($id = $request->input('id')); $id = (array) $id; foreach ($id as $v) { $brand = Brand::find($v); if ($brand->fid == $this->factory->getKey()) { Brand::destroy($v); } } return $this->success('', count($id) > 5, compact('id')); }