for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Sco\Admin\Observers;
use Cache;
use Sco\Admin\Models\Permission;
class PermissionObserver
{
public function saved(Permission $permission)
$permission
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
$this->clearCache();
}
public function deleted(Permission $permission)
private function clearCache()
Cache::forget('permission_all');
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.