File manager - Edit - /var/www/html/gop/api/app/Http/Requests/Update/UpdateFiscalRequest.php
Back
<?php namespace App\Http\Requests\Update; use App\Enums\CargoFiscal; use Illuminate\Foundation\Http\FormRequest; use Illuminate\Validation\Rule; class UpdateFiscalRequest 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() { return [ 'cargo' => ['required', 'string', 'max:255', Rule::in(CargoFiscal::values())], 'prestador_id' => ['required', 'exists:prestadores,id'], ]; } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.28 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings