@@ -321,6 +321,9 @@ |
||
| 321 | 321 | return explode('|', trim($pipeString, $quoteCharacter)); |
| 322 | 322 | } |
| 323 | 323 | |
| 324 | + /** |
|
| 325 | + * @param string $guard |
|
| 326 | + */ |
|
| 324 | 327 | protected function getArgumentRoles($roles, $guard = null) |
| 325 | 328 | { |
| 326 | 329 | return array_map(function ($role) use ($guard) { |
@@ -2,10 +2,10 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Spatie\Permission\Traits; |
| 4 | 4 | |
| 5 | -use Illuminate\Support\Collection; |
|
| 6 | -use Spatie\Permission\Contracts\Role; |
|
| 7 | 5 | use Illuminate\Database\Eloquent\Builder; |
| 8 | 6 | use Illuminate\Database\Eloquent\Relations\BelongsToMany; |
| 7 | +use Illuminate\Support\Collection; |
|
| 8 | +use Spatie\Permission\Contracts\Role; |
|
| 9 | 9 | |
| 10 | 10 | trait HasRoles |
| 11 | 11 | { |