mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-11 10:31:06 +03:30
Finish My info
This commit is contained in:
@@ -77,4 +77,10 @@ class UserController extends Controller
|
||||
$User->syncRoles($request->roles);
|
||||
return response()->json($User, 200);
|
||||
}
|
||||
|
||||
public function updateInfo(Request $request)
|
||||
{
|
||||
auth('api')->user()->update($request->all());
|
||||
return response()->json(['user' => auth('api')->user()], 200);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user