1 | <?php namespace App\Modules\Notifications\ModelObservers; |
||
6 | class NotificationObserver { |
||
7 | |||
8 | public function saving($model) |
||
12 | |||
13 | public function saved($model) |
||
17 | |||
18 | public function creating($model) |
||
22 | |||
23 | /** |
||
24 | * Publish the created notification to the redis server |
||
25 | * to broadcast it to all listners. |
||
26 | * |
||
27 | * @param object $model the model beign created. |
||
28 | * @return void |
||
29 | */ |
||
30 | public function created($model) |
||
34 | |||
35 | public function updating($model) |
||
39 | |||
40 | public function updated($model) |
||
44 | |||
45 | public function deleting($model) |
||
49 | |||
50 | public function deleted($model) |
||
54 | |||
55 | } |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.