芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/qrafiqxcreativeagency.com/accounts/office/app/Http/Requests/Lead/StorePublicLead.php
where('email', $value) ->where('is_superadmin', 1) ->exists(); }); $company = Company::findOrFail($this->request->get('company_id')); $rules = array(); $rules['name'] = 'required'; $rules['email'] = 'nullable|email:rfc|check_superadmin|unique:leads,client_email,null,id,company_id,' . $company->id.'|unique:users,email,null,id,company_id,' . $company->id; $rules = $this->customFieldRules($rules); if(global_setting()->google_recaptcha_status == 'active' && global_setting()->ticket_form_google_captcha == 1 && (global_setting()->google_recaptcha_v2_status == 'active')){ $rules['g-recaptcha-response'] = 'required'; } return $rules; } public function attributes() { $attributes = []; $attributes = $this->customFieldsAttributes($attributes); return $attributes; } public function messages() { return [ 'email.check_superadmin' => __('superadmin.emailCantUse'), ]; } }