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