| 1 | <?php |
||
| 9 | class SettingPolicy |
||
| 10 | { |
||
| 11 | use HandlesAuthorization; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * Determine whether the user can view any models. |
||
| 15 | * |
||
| 16 | * @param User $user |
||
| 17 | * @return mixed |
||
| 18 | */ |
||
| 19 | public function viewAny(User $user) |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Determine whether the user can create models. |
||
| 26 | * |
||
| 27 | * @param User $user |
||
| 28 | * @return mixed |
||
| 29 | */ |
||
| 30 | public function create(User $user) |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Determine whether the user can update the model. |
||
| 37 | * |
||
| 38 | * @param User $user |
||
| 39 | * @return mixed |
||
| 40 | */ |
||
| 41 | public function update(User $user) |
||
| 45 | |||
| 46 | /** |
||
| 47 | * Determine whether the user can delete the model. |
||
| 48 | * |
||
| 49 | * @param User $user |
||
| 50 | * @param Setting $model |
||
| 51 | * @return mixed |
||
| 52 | */ |
||
| 53 | public function delete(User $user, Setting $model) |
||
| 57 | } |
||
| 58 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.