for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php namespace App\Modules\Notifications\ModelObservers;
/**
* Handling of model events,
*/
class NotificationObserver {
public function saving($model)
$model
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
{
//
}
public function saved($model)
public function creating($model)
* Publish the created notification to the redis server
* to broadcast it to all listners.
*
* @param object $model the model beign created.
* @return void
public function created($model)
\Redis::publish('notification', json_encode($model->toArray()));
public function updating($model)
public function updated($model)
public function deleting($model)
public function deleted($model)
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.