Skip to content

Commit 9e1adbb

Browse files
committed
Register assignRole user, change style breadcrumb
1 parent fde3be7 commit 9e1adbb

File tree

11 files changed

+2606
-2686
lines changed

11 files changed

+2606
-2686
lines changed

app/Http/Controllers/Auth/RegisterController.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ protected function create(array $data)
7272
'password' => Hash::make($data['password']),
7373
]);
7474

75+
$user->assignRole('user');
76+
7577
$avatar = Avatar::create($user->name)->getImageObject()->encode('png');
7678
Storage::put('avatars/'.$user->id.'/avatar.png', (string) $avatar);
7779

0 commit comments

Comments
 (0)