Exemplo n.º 1
0
 public function force_destroy($id)
 {
     $good = Good::withTrashed()->find($id);
     $good->forceDelete();
     return back()->with('info', '删除成功');
 }
Exemplo n.º 2
0
 public function restore($id)
 {
     $goods = Good::withTrashed()->find($id);
     $goods->restore();
     return back()->with('info', '恢复成功~');
 }