@@ -28,7 +28,7 @@ |
||
| 28 | 28 | * PERMISSION |
| 29 | 29 | * A permission belongs to many users |
| 30 | 30 | * |
| 31 | - * @return mixed |
|
| 31 | + * @return \Illuminate\Database\Eloquent\Relations\BelongsToMany |
|
| 32 | 32 | */ |
| 33 | 33 | public function users() |
| 34 | 34 | { |
@@ -2,8 +2,8 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace z1haze\Acl\Traits; |
| 4 | 4 | |
| 5 | -use z1haze\Acl\Exceptions\LevelNotFoundException; |
|
| 6 | 5 | use Illuminate\Support\Facades\Cache; |
| 6 | +use z1haze\Acl\Exceptions\LevelNotFoundException; |
|
| 7 | 7 | use z1haze\Acl\Models\Level; |
| 8 | 8 | |
| 9 | 9 | trait UserAndPermission |
@@ -354,7 +354,7 @@ |
||
| 354 | 354 | * Modify a given set of permissions, given the action to be taken |
| 355 | 355 | * |
| 356 | 356 | * @param $permissions |
| 357 | - * @param $action |
|
| 357 | + * @param string $action |
|
| 358 | 358 | */ |
| 359 | 359 | protected function modifyPermissions($permissions, $action) |
| 360 | 360 | { |
@@ -3,9 +3,9 @@ |
||
| 3 | 3 | namespace z1haze\Acl\Traits; |
| 4 | 4 | |
| 5 | 5 | use Illuminate\Support\Collection; |
| 6 | +use Illuminate\Support\Facades\Cache; |
|
| 6 | 7 | use ReflectionClass; |
| 7 | 8 | use z1haze\Acl\Exceptions\PermissionNotFoundException; |
| 8 | -use Illuminate\Support\Facades\Cache; |
|
| 9 | 9 | use z1haze\Acl\Models\Level; |
| 10 | 10 | use z1haze\Acl\Models\Permission; |
| 11 | 11 | |