adds roles
This commit is contained in:
@@ -22,11 +22,6 @@ public function authorize(): bool
|
||||
public function rules(): array
|
||||
{
|
||||
return [
|
||||
'basic_info' => ['sometimes', 'required', 'array'],
|
||||
'basic_info.client_name' => ['required_with:basic_info', 'string', 'max:255'],
|
||||
'basic_info.client_contact' => ['required_with:basic_info', 'string', 'max:255'],
|
||||
'basic_info.lead_firm_name' => ['required_with:basic_info', 'string', 'max:255'],
|
||||
'basic_info.lead_firm_contact' => ['required_with:basic_info', 'string', 'max:255'],
|
||||
'answers' => ['sometimes', 'array'],
|
||||
'answers.*.value' => ['nullable', 'string', 'in:yes,no,not_applicable'],
|
||||
'answers.*.text_value' => ['nullable', 'string', 'max:10000'],
|
||||
@@ -41,20 +36,6 @@ public function rules(): array
|
||||
public function messages(): array
|
||||
{
|
||||
return [
|
||||
'basic_info.required' => 'Basic information is required.',
|
||||
'basic_info.array' => 'Basic information must be a valid data structure.',
|
||||
'basic_info.client_name.required_with' => 'The client name is required.',
|
||||
'basic_info.client_name.string' => 'The client name must be text.',
|
||||
'basic_info.client_name.max' => 'The client name cannot exceed 255 characters.',
|
||||
'basic_info.client_contact.required_with' => 'The client contact is required.',
|
||||
'basic_info.client_contact.string' => 'The client contact must be text.',
|
||||
'basic_info.client_contact.max' => 'The client contact cannot exceed 255 characters.',
|
||||
'basic_info.lead_firm_name.required_with' => 'The lead firm name is required.',
|
||||
'basic_info.lead_firm_name.string' => 'The lead firm name must be text.',
|
||||
'basic_info.lead_firm_name.max' => 'The lead firm name cannot exceed 255 characters.',
|
||||
'basic_info.lead_firm_contact.required_with' => 'The lead firm contact is required.',
|
||||
'basic_info.lead_firm_contact.string' => 'The lead firm contact must be text.',
|
||||
'basic_info.lead_firm_contact.max' => 'The lead firm contact cannot exceed 255 characters.',
|
||||
'answers.array' => 'Answers must be a valid data structure.',
|
||||
'answers.*.value.in' => 'Answer value must be yes, no, or not_applicable.',
|
||||
'answers.*.text_value.string' => 'Answer text must be text.',
|
||||
|
||||
Reference in New Issue
Block a user