| 1 | <?php namespace App\Modules\V1\Core\ModelObservers; |
||
| 6 | class SettingsObserver { |
||
| 7 | |||
| 8 | public function saving($model) |
||
| 12 | |||
| 13 | public function saved($model) |
||
| 17 | |||
| 18 | /** |
||
| 19 | * Prevent the creating of the settings. |
||
| 20 | * |
||
| 21 | * @param object $model the model beign created. |
||
| 22 | * @return void |
||
| 23 | */ |
||
| 24 | public function creating($model) |
||
| 28 | |||
| 29 | public function created($model) |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Prevent updating of the setting key. |
||
| 36 | * |
||
| 37 | * @param object $model the model beign updated. |
||
| 38 | * @return void |
||
| 39 | */ |
||
| 40 | public function updating($model) |
||
| 47 | |||
| 48 | public function updated($model) |
||
| 52 | |||
| 53 | public function deleting($model) |
||
| 57 | |||
| 58 | public function deleted($model) |
||
| 62 | |||
| 63 | public function restoring($model) |
||
| 67 | |||
| 68 | public function restored($model) |
||
| 72 | } |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.