예제 #1
0
 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function destroy($id)
 {
     Supplier::destroy($id);
     return redirect()->route('admin.suppliers.index')->with('status', 'Supplier removed!');
 }
 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function destroy($id)
 {
     $result = Supplier::destroy($id);
     return redirect()->route('suppliers.index')->with(['message' => $result ? 'Supplier deleted!' : 'Something went wrong, please try again.']);
 }