File manager - Edit - /var/www/html/spdc/api/app/Http/Requests/OccurrencyExecutionRequest.php
Back
<?php namespace App\Http\Requests; use App\Rules\ArrayInput; use Illuminate\Foundation\Http\FormRequest; class OccurrencyExecutionRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true; } /** * Get the validation rules that apply to the request. * * @return array<string, mixed> */ public function rules() { $rules = [ 'forms' => ['nullable', new ArrayInput()], 'forms.*.id' => ['nullable', "exists:occurrency_forms,id"], 'forms.*.section' => ['nullable', 'in:REGISTRO,VISTORIA,EXECUÇÃO'], 'forms.*.fields' => ['nullable', new ArrayInput()], 'forms.*.fields.*.id' => ['nullable', "exists:occurrency_fields,id"], 'forms.*.fields.*.value' => ['nullable'], 'observation' => ['nullable', 'max:1024'], 'files' => ['nullable', new ArrayInput()], 'files.*' => ['nullable', 'string'], 'images' => ['nullable', new ArrayInput()], 'images.*' => ['nullable', 'string'], 'team' => ['nullable', new ArrayInput()], 'team.*' => ['nullable', 'string', 'max:255'], ]; return $rules; } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.28 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings