1public function destroy($id){
2
3 $res=User::find($id)->delete();
4 if ($res){
5 $data=[
6 'status'=>'1',
7 'msg'=>'success'
8 ];
9 }else{
10 $data=[
11 'status'=>'0',
12 'msg'=>'fail'
13 ];
14 return response()->json($data);
15