Example #1
0
 public function destroy(Request $request)
 {
     $user1 = User::find($request->input('id'));
     $user1->delete();
     //Event::fire('update.Ttype',$Ttype->all());
     return response()->json(['estado' => true]);
 }
Example #2
0
 public function find($id)
 {
     $user = User::find($id);
     return response()->json($user);
 }