protected function extendUpdate(ValidatorResolver $validator)
    {
        $name = Keyword::make($validator->getData()['name']);

        $validator->after(function (ValidatorResolver $v) use ($name) {
            if ($this->isRoleNameGuest($name)) {
                $v->errors()->add('name', trans('orchestra/control::response.roles.reserved-word'));
            }
        });
    }
protected function extendUpdate(ValidatorResolver $validator)
    {
        $name = Keyword::make($validator->getData()['name']);

        $validator->after(function (ValidatorResolver $v) use ($name) {
            if ($this->isRoleNameGuest($name)) {
                $v->errors()->add('name', trans('orchestra/control::response.roles.reserved-word'));
            }
        });
    }
protected function extendUpdate ( ValidatorResolver $ validator ) { $ name = Keyword :: make ( $ validator -> getData ( ) [ 'name' ] ) ; $ validator -> after ( function ( ValidatorResolver $ v ) use ( $ name ) { if ( $ this -> isRoleNameGuest ( $ name ) ) { $ v -> errors ( ) -> add ( 'name' , trans ( 'orchestra/control::response.roles.reserved-word' ) ) ; } } ) ; }
Extend update validations.

@param  \Illuminate\Contracts\Validation\Validator  $validator

@return void
Extend update validations .