['required', 'string', Rule::in(DataExport::TYPES)], 'options' => ['nullable', 'array'], 'options.format' => ['nullable', 'string', Rule::in(['xlsx', 'csv', 'json'])], 'options.include_deleted' => ['nullable', 'boolean'], ]; } public function attributes(): array { return [ 'export_type' => __('field.export_type'), 'options' => __('field.options'), ]; } }