File manager - Edit - /var/www/html/gop/api/app/Http/Requests/Store/StoreNotaFiscalRequest.php
Back
<?php namespace App\Http\Requests\Store; use Illuminate\Foundation\Http\FormRequest; class StoreNotaFiscalRequest 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 [ 'numero' => 'required|string|unique:notas_fiscais', 'data' => 'required|date', 'valor' => 'required|numeric|min:0.01', 'obra_id' => 'required|exists:obras,id', 'empenhos' => 'required|array', 'empenhos.*.id' => 'required|exists:empenhos,id', 'empenhos.*.valor_empenhado' => 'required|numeric|min:0.01', 'descricao' => 'nullable|string', ]; } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.28 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings