1
0
mirror of https://github.com/robonen/education-project.git synced 2026-03-20 10:54:31 +00:00

Исправление кода в контроллерах

This commit is contained in:
ashen-1-dev
2020-12-18 03:02:31 +07:00
parent 654947873e
commit 98f2d8f65b
6 changed files with 33 additions and 26 deletions

View File

@@ -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);
}