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