src/Traits/TakiRegistration.php
protected function validateCreating()
    {
        $rules = config('taki.validator.create', []);

        if (config('taki.username.required') && !array_get($rules, config('taki.field.username'))) {
            $rules[config('taki.field.username')] = config('taki.username.validator', 'required');
        }

        return $rules;
    }
protected function validateCreating()
    {
        $rules = config('taki.validator.create', []);

        if (config('taki.username.required') && !array_get($rules, config('taki.field.username'))) {
            $rules[config('taki.field.username')] = config('taki.username.validator', 'required');
        }

        return $rules;
    }
protected function validateCreating ( ) { $ rules = config ( 'taki.validator.create' , [ ] ) ; if ( config ( 'taki.username.required' ) && ! array_get ( $ rules , config ( 'taki.field.username' ) ) ) { $ rules [ config ( 'taki.field.username' ) ] = config ( 'taki.username.validator' , 'required' ) ; } return $ rules ; }
get the validation rules when creating user

@param array $data

@return array
get the validation rules when creating user