File manager - Edit - /var/www/html/gop/api/app/Http/Requests/Update/UpdateArquivoRequest.php
Back
<?php namespace App\Http\Requests\Update; use App\Enums\ArquivoModels; use Illuminate\Foundation\Http\FormRequest; class UpdateArquivoRequest 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() { $arquivableTable = ArquivoModels::getModelTable($this->input('arquivable_type')); return [ 'arquivable_id' => 'required|exists:'.$arquivableTable.',id', 'arquivable_type' => 'required|in:'.implode(',', ArquivoModels::values()), ]; } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.28 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings