@@ -2,13 +2,13 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Spatie\Permission\Traits; |
| 4 | 4 | |
| 5 | -use Spatie\Permission\Guard; |
|
| 6 | -use Illuminate\Support\Collection; |
|
| 7 | 5 | use Illuminate\Database\Eloquent\Builder; |
| 8 | -use Spatie\Permission\PermissionRegistrar; |
|
| 6 | +use Illuminate\Database\Eloquent\Relations\MorphToMany; |
|
| 7 | +use Illuminate\Support\Collection; |
|
| 9 | 8 | use Spatie\Permission\Contracts\Permission; |
| 10 | 9 | use Spatie\Permission\Exceptions\GuardDoesNotMatch; |
| 11 | -use Illuminate\Database\Eloquent\Relations\MorphToMany; |
|
| 10 | +use Spatie\Permission\Guard; |
|
| 11 | +use Spatie\Permission\PermissionRegistrar; |
|
| 12 | 12 | |
| 13 | 13 | trait HasPermissions |
| 14 | 14 | { |
@@ -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\MorphToMany; |
| 7 | +use Illuminate\Support\Collection; |
|
| 8 | +use Spatie\Permission\Contracts\Role; |
|
| 9 | 9 | |
| 10 | 10 | trait HasRoles |
| 11 | 11 | { |