1 | <?php namespace App\Modules\Groups\ModelObservers; |
||
6 | class AclGroupObserver |
||
7 | { |
||
8 | |||
9 | public function saving($model) |
||
13 | |||
14 | public function saved($model) |
||
18 | |||
19 | public function creating($model) |
||
23 | |||
24 | public function created($model) |
||
28 | |||
29 | /** |
||
30 | * Prevent updating of the admin group. |
||
31 | * |
||
32 | * @param object $model the model beign updated. |
||
33 | * @return void |
||
34 | */ |
||
35 | public function updating($model) |
||
41 | |||
42 | public function updated($model) |
||
46 | |||
47 | /** |
||
48 | * Prevent deleting the admin group. |
||
49 | * |
||
50 | * @param object $model the delted model. |
||
51 | * @return void |
||
52 | */ |
||
53 | public function deleting($model) |
||
59 | |||
60 | public function deleted($model) |
||
64 | |||
65 | public function restoring($model) |
||
69 | |||
70 | public function restored($model) |
||
74 | } |
||
75 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.