public function created(Permission $permission)
    {
        $superAdminRole = RoleRepository::GET_SUPER_ADMIN();
        if ($superAdminRole) {
            $superAdminRole->givePermissionTo($permission);
        }
        //
        if ($permission->is_default_action === false) {
            $this->createLanguageTerm($permission->model, $permission->action);
        }
    }
public function created(Permission $permission)
    {
        $superAdminRole = RoleRepository::GET_SUPER_ADMIN();
        if ($superAdminRole) {
            $superAdminRole->givePermissionTo($permission);
        }
        //
        if ($permission->is_default_action === false) {
            $this->createLanguageTerm($permission->model, $permission->action);
        }
    }
public function created ( Permission $ permission ) { $ superAdminRole = RoleRepository :: GET_SUPER_ADMIN ( ) ; if ( $ superAdminRole ) { $ superAdminRole -> givePermissionTo ( $ permission ) ; } // if ( $ permission -> is_default_action === false ) { $ this -> createLanguageTerm ( $ permission -> model , $ permission -> action ) ; } }
Listen to the Permission created event.

@param Permission $permission
@return void
Listen to the Permission created event .