app/Http/Requests/Auth/ChangeUsernameRequest.php
/**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
Get the validation rules that apply to the request.
@return array
Get the validation rules that apply to the request . @return array
public function rules()
    {
        return [
            'StrUserID'  => ['required', 'max:250', 'without_spaces', 'unique:TB_User']
        ];
    }
public function rules ( ) { return [ 'StrUserID' => [ 'required' , 'max:250' , 'without_spaces' , 'unique:TB_User' ] ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .