mirror of
https://github.com/robonen/education-project.git
synced 2026-03-20 02:44:31 +00:00
Модуль журнала
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user