for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php namespace App\Modules\Acl\ModelObservers;
/**
* Handling of model events,
*/
class AclGroupObserver {
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)
public function created($model)
public function updating($model)
public function updated($model)
* Soft delete the associated permissions to the deleted group.
*
* @param object $model the delted model.
* @return void
public function deleting($model)
\DB::table('groups_permissions')->where('group_id', $model->id)->update(array('deleted_at' => \DB::raw('NOW()')));
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.