芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/qrafiqxcreativeagency.com/accounts/office/app/Http/Requests/Lead/UpdateRequest.php
where('email', $value) ->where('is_superadmin', 1) ->exists(); }); $rules = [ 'client_name' => 'required', 'client_email' => 'nullable|email:rfc|unique:leads,client_email,'.$this->route('lead').',id,company_id,' . company()->id.'|check_superadmin', 'website' => 'nullable|url' ]; $rules = $this->customFieldRules($rules); return $rules; } public function attributes() { $attributes = []; $attributes = $this->customFieldsAttributes($attributes); $attributes['client_name'] = __('app.lead').' '.__('app.name'); return $attributes; } public function messages() { return [ 'client_email.check_superadmin' => __('superadmin.emailAlreadyExist'), ]; } }