Merge pull request #5760 from turbo124/v5-develop

Fixes for company requests
This commit is contained in:
David Bomba 2021-05-20 17:09:45 +10:00 committed by GitHub
commit b9858306f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -49,7 +49,7 @@ class StoreCompanyRequest extends Request
} else {
if(Ninja::isHosted()){
$rules['subdomain'] = ['nullable|alpha_num', new ValidSubdomain($this->all())];
$rules['subdomain'] = ['nullable', 'alpha_num', new ValidSubdomain($this->all())];
}
else
$rules['subdomain'] = 'nullable|alpha_num';

View File

@ -50,7 +50,7 @@ class UpdateCompanyRequest extends Request
} else {
if(Ninja::isHosted()){
$rules['subdomain'] = ['nullable|alpha_num', new ValidSubdomain($this->all())];
$rules['subdomain'] = ['nullable', 'alpha_num', new ValidSubdomain($this->all())];
}
else
$rules['subdomain'] = 'nullable|alpha_num';