done lots of work till now
This commit is contained in:
1 parent
a7434e33d7
commit
c87c4bfd6d
10 files changed
+256
-116
No files matched your search
@@ -56,6 +56,11 @@ class RegisteredUserController extends Controller
|
||||
'nationality' => $request->nationality,
|
||||
]);
|
||||
|
||||
// Assign super-admin role to the first registered user
|
||||
if (User::count() === 1) {
|
||||
$user->assignRole('super-admin');
|
||||
}
|
||||
|
||||
event(new Registered($user));
|
||||
|
||||
// Send welcome email
|
||||
|
||||
Reference in new issue
Block a user