File manager - Edit - /var/www/html/spdc/api/app/Http/Requests/OccurrencyInspectionRequest.php
Back
<?php namespace App\Http\Requests; use App\Rules\ArrayInput; use Illuminate\Foundation\Http\FormRequest; class OccurrencyInspectionRequest 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' => ['required_with:forms', "exists:occurrency_forms,id"], 'forms.*.section' => ['nullable', 'in:REGISTRO,VISTORIA,EXECUÇÃO'], 'forms.*.fields' => ['required_with:forms', new ArrayInput()], 'forms.*.fields.*.id' => ['required_with:forms', "exists:occurrency_fields,id"], 'forms.*.fields.*.value' => ['nullable'], ]; return $rules; } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.28 | Generation time: 0.01 |
proxy
|
phpinfo
|
Settings