Fixes for company validation rules
This commit is contained in:
parent
cf1e844114
commit
ee94ed6ac9
1 changed files with 1 additions and 1 deletions
|
|
@ -43,7 +43,7 @@ class UpdateCompanyRequest extends Request
|
|||
$rules['country_id'] = 'integer|nullable';
|
||||
$rules['work_email'] = 'email|nullable';
|
||||
|
||||
if (isset($rules['portal_mode']) && ($rules['portal_mode'] == 'domain' || $rules['portal_mode'] == 'iframe')) {
|
||||
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';
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue