Merge pull request #5760 from turbo124/v5-develop
Fixes for company requests
This commit is contained in:
commit
b9858306f9
2 changed files with 2 additions and 2 deletions
|
|
@ -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';
|
||||
|
|
|
|||
|
|
@ -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';
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue