|
|
@@ -141,7 +141,7 @@ class OwnerController extends Controller
|
|
|
{
|
|
|
if(!Gate::allows('货主-删除')){ return ['success'=>'false','fail_info'=>"没有权限"]; }
|
|
|
$id=$request->input('id');
|
|
|
- $owner=Owner::withTrashed()->where('id',$id);
|
|
|
+ $owner=Owner::withTrashed()->where('id',$id)->first();
|
|
|
$owner->restore();
|
|
|
$this->log(__METHOD__,__FUNCTION__,json_encode($request->toArray()),Auth::user()['id']);
|
|
|
return ['success'=>'true','owner'=>$owner];
|