Allow use of toggle switches for checkboxes (#13)

This commit is contained in:
Chirag
2022-10-18 12:19:00 +05:30
committed by GitHub
parent bd7d20feb9
commit 545908d300
7 changed files with 60 additions and 5 deletions

View File

@@ -84,6 +84,7 @@ abstract class UserFormRequest extends \Illuminate\Foundation\Http\FormRequest
'properties.*.timezone' => 'sometimes|nullable',
'properties.*.width' => ['sometimes', Rule::in(['full','1/2','1/3','2/3','1/3','3/4','1/4'])],
'properties.*.allowed_file_types' => 'sometimes|nullable',
'properties.*.use_toggle_switch' => 'boolean|nullable',
// Logic
'properties.*.logic' => ['array', 'nullable', new FormPropertyLogicRule()],