Example #1
0
 /**
  * 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');
 }
Example #3
0
 /**
  * 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');
 }
Example #4
0
 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'));
 }
Example #5
0
 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function destroy($id)
 {
     if (Brand::destroy($id)) {
         return $this->index();
     }
 }
Example #6
0
 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function destroy($id)
 {
     Brand::destroy($id);
 }
Example #7
0
 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'));
 }