add description section to second step
This commit is contained in:
@@ -120,6 +120,7 @@ class OperatorController extends Controller
|
||||
'judiciary_document' => $need_judiciary ? serialize($judiciary_document) : null,
|
||||
'judiciary_document_upload_date' => $need_judiciary ? now() : null,
|
||||
'need_judiciary' => $need_judiciary,
|
||||
'operator_description' => $request->operator_description,
|
||||
]);
|
||||
|
||||
$user->addActivityComplete(1135);
|
||||
|
||||
@@ -23,7 +23,8 @@ class SecondStepStoreRequest extends FormRequest
|
||||
{
|
||||
return [
|
||||
'need_judiciary' => 'required|boolean',
|
||||
'judiciary_document' => 'required|array',
|
||||
'operator_description' => 'required_if:need_judiciary,0|string',
|
||||
'judiciary_document' => 'required_if:need_judiciary,1|array',
|
||||
'judiciary_document.*' => 'file',
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user