1 | <?php namespace App\Modules\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) |
||
29 | |||
30 | public function created($model) |
||
34 | |||
35 | /** |
||
36 | * Prevent updating of the setting key. |
||
37 | * |
||
38 | * @param object $model the model beign updated. |
||
39 | * @return void |
||
40 | */ |
||
41 | public function updating($model) |
||
49 | |||
50 | public function updated($model) |
||
54 | |||
55 | public function deleting($model) |
||
59 | |||
60 | public function deleted($model) |
||
64 | |||
65 | } |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.