src/Defender/Traits/Permissions/InteractsWithPermissions.php
public function extendPermission($permission, array $options)
    {
        foreach ($this->permissions as $_permission) {
            if ($_permission->name === $permission) {
                return $this->permissions()->updateExistingPivot(
                    $_permission->id,
                    array_only($options, ['value', 'expires'])
                );
            }
        }
    }
public function extendPermission($permission, array $options)
    {
        foreach ($this->permissions as $_permission) {
            if ($_permission->name === $permission) {
                return $this->permissions()->updateExistingPivot(
                    $_permission->id,
                    array_only($options, ['value', 'expires'])
                );
            }
        }
    }
public function extendPermission ( $ permission , array $ options ) { foreach ( $ this -> permissions as $ _permission ) { if ( $ _permission -> name === $ permission ) { return $ this -> permissions ( ) -> updateExistingPivot ( $ _permission -> id , array_only ( $ options , [ 'value' , 'expires' ] ) ) ; } } }
Extend an existing temporary permission.

@param string $permission
@param array  $options

@return bool|null
Extend an existing temporary permission .