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

Модуль журнала

This commit is contained in:
2020-12-16 05:22:28 +07:00
parent 2e2942e42c
commit be8af67c61
21 changed files with 868 additions and 22 deletions

View File

@@ -18,7 +18,7 @@ class RegisterController extends Controller
{
$role = Role::where('name', $request->get('role'));
if ($role->isEmpty())
if ($role->get()->isEmpty())
return response()->json('Role not found', 404);
$user = User::create(array_merge(