芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/qrafiqxcreativeagency.com/accounts/office/app/Http/Requests/Lead/StoreRequest.php
where('email', $value) ->where('is_superadmin', 1) ->exists(); }); $rules = array(); $rules['client_name'] = 'required'; $rules['client_email'] = 'nullable|email:rfc|check_superadmin'; $rules['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'), ]; } }