File manager - Edit - /var/www/html/portal/app/Http/Requests/Observatorio/TemaRequest.php
Back
<?php namespace App\Http\Requests\Observatorio; use Illuminate\Foundation\Http\FormRequest; class TemaRequest extends FormRequest { public function authorize(): bool { return true; } public function rules(): array { return [ 'nome' => ['required', 'string', 'max:255'], 'descricao' => ['nullable', 'string'], 'cor' => ['nullable', 'string', 'max:30'], 'icone_arquivo' => ['nullable', 'file', 'mimes:jpg,jpeg,png,gif,webp,bmp,svg', 'max:2048'], 'status' => ['nullable', 'string', 'in:ATIVADO,DESATIVADO'], ]; } public function attributes(): array { return [ 'icone_arquivo' => __('upload de ícone do tema'), ]; } public function messages(): array { return [ 'nome.required' => __('O nome do tema é obrigatório.'), 'nome.max' => __('O nome do tema não pode ultrapassar :max caracteres.'), 'icone_arquivo.file' => __('Envie um arquivo válido para o ícone.'), 'icone_arquivo.mimes' => __('O ícone deve estar em JPG, PNG, GIF, WEBP, BMP ou SVG.'), 'icone_arquivo.max' => __('O ícone não pode ultrapassar :max KB.'), 'status.in' => __('O status selecionado é inválido.'), ]; } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.28 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings