Fixes for company sub domain
This commit is contained in:
parent
91ee9c1c21
commit
4c2df3e1ff
2 changed files with 2 additions and 2 deletions
|
|
@ -45,7 +45,7 @@ class StoreCompanyRequest extends Request
|
|||
if (isset($input['portal_mode']) && ($input['portal_mode'] == 'domain' || $input['portal_mode'] == 'iframe')) {
|
||||
$rules['portal_domain'] = 'sometimes|url';
|
||||
} else {
|
||||
$rules['portal_domain'] = 'nullable|alpha_num';
|
||||
$rules['subdomain'] = 'nullable|alpha_num';
|
||||
}
|
||||
|
||||
return $rules;
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ class UpdateCompanyRequest extends Request
|
|||
if (isset($input['portal_mode']) && ($input['portal_mode'] == 'domain' || $input['portal_mode'] == 'iframe')) {
|
||||
$rules['portal_domain'] = 'sometimes|url';
|
||||
} else {
|
||||
$rules['portal_domain'] = 'nullable|alpha_num';
|
||||
$rules['subdomain'] = 'nullable|alpha_num';
|
||||
}
|
||||
|
||||
// if($this->company->account->isPaidHostedClient()) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue