File manager - Edit - /var/www/html/portalHomolog/app/Http/Requests/Accounts/Chamados/ChamadoPesquisaSatisfacaoRequest.php
Back
<?php namespace App\Http\Requests\Accounts\Chamados; use Illuminate\Foundation\Http\FormRequest; class ChamadoPesquisaSatisfacaoRequest extends FormRequest { /** * Determine if the user is authorized to make this request. */ public function authorize(): bool { return true; } /** * Get the validation rules that apply to the request. * * @return array<string, \Illuminate\Contracts\Validation\ValidationRule|array<mixed>|string> */ public function rules(): array { return [ 'chamado_resolvido' => 'required|boolean', 'problema_resolvido' => 'required|boolean', 'satisfacao' => 'required|in:Muito Ruim,Ruim,Regular,Bom,Muito Bom', 'comentario' => 'nullable|string|max:1000', ]; } public function messages(): array { return [ 'chamado_resolvido.required' => __('O campo "O chamado foi resolvido?" é obrigatório.'), 'chamado_resolvido.boolean' => __('O campo "O chamado foi resolvido?" deve ser sim ou não.'), 'problema_resolvido.required' => __('O campo "O problema foi resolvido?" é obrigatório.'), 'problema_resolvido.boolean' => __('O campo "O problema foi resolvido?" deve ser sim ou não.'), 'satisfacao.required' => __('A avaliação de satisfação é obrigatória.'), 'satisfacao.in' => __('A avaliação de satisfação deve ser uma das opções válidas.'), 'comentario.max' => __('O comentário não pode ultrapassar 1000 caracteres.'), ]; } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.28 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings