@@ -187,7 +187,7 @@ |
||
| 187 | 187 | /** |
| 188 | 188 | * Determine if the model has the given permission. |
| 189 | 189 | * |
| 190 | - * @param string|int|\Spatie\Permission\Contracts\Permission $permission |
|
| 190 | + * @param Permission $permission |
|
| 191 | 191 | * |
| 192 | 192 | * @return bool |
| 193 | 193 | */ |
@@ -2,14 +2,14 @@ |
||
| 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; |
|
| 12 | 10 | use Spatie\Permission\Exceptions\PermissionDoesNotExist; |
| 11 | +use Spatie\Permission\Guard; |
|
| 12 | +use Spatie\Permission\PermissionRegistrar; |
|
| 13 | 13 | |
| 14 | 14 | trait HasPermissions |
| 15 | 15 | { |