|
@@ 124-126 (lines=3) @@
|
| 121 |
|
$data['role'] = config('laraflock.dashboard.defaultRole'); |
| 122 |
|
} |
| 123 |
|
|
| 124 |
|
if (!$role = $this->sentinel->findRoleBySlug($data['role'])) { |
| 125 |
|
throw new RolesException(trans('dashboard::dashboard.errors.role.found')); |
| 126 |
|
} |
| 127 |
|
|
| 128 |
|
$role->users() |
| 129 |
|
->attach($user); |
|
@@ 163-165 (lines=3) @@
|
| 160 |
|
$data['role'] = config('laraflock.dashboard.defaultRole'); |
| 161 |
|
} |
| 162 |
|
|
| 163 |
|
if (!$role = $this->sentinel->findRoleBySlug($data['role'])) { |
| 164 |
|
throw new RolesException(trans('dashboard::dashboard.errors.role.found')); |
| 165 |
|
} |
| 166 |
|
|
| 167 |
|
$role->users() |
| 168 |
|
->attach($user); |