mirror of
https://github.com/robonen/education-project.git
synced 2026-03-20 02:44:31 +00:00
Исправление кода в контроллерах
This commit is contained in:
@@ -31,6 +31,7 @@ class UserController extends Controller
|
||||
}
|
||||
$user->toArray();
|
||||
$user['role'] = auth()->user()->role->name;
|
||||
$user['email'] = auth()->user()->email;
|
||||
return response()->json($user, 200);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user