UnknownSec Bypass
403
:
/
mnt
/
lmsestudio-instance-vol002
/
lms_64113a7a192d
/
app
/
Http
/
Requests
/
Courses
/ [
drwxr-xr-x
]
Menu
Upload
Mass depes
Mass delete
Terminal
Info server
About
name :
UtfCommentsRequest.php
<?php namespace EstudioLMS\Http\Requests\Courses; use EstudioLMS\Http\Requests\Request; /** * */ class UtfCommentsRequest extends Request { /** * 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 */ public function rules() { $id = Request::get('rejoinder_id') ?? Request::get('reply_id') ?? 0; $min = Request::get('min_comments'); $max = Request::get('max_comments'); $minMax = 'required'; if ($min > 0) { $minMax .= '|min:' . $min; } if ($max > 0) { $minMax .= '|max:' . $max; } return [ 'comments' . $id => $minMax ]; } /** * Set custom attributes for validator errors. * * @return array */ public function attributes() { $id = Request::get('rejoinder_id') ?? Request::get('reply_id') ?? 0; return [ 'comments' . $id => 'mensagem' ]; } /** * Set custom messages for validator errors. * * @return array */ public function messages() { $id = Request::get('rejoinder_id') ?? Request::get('reply_id') ?? 0; return [ 'comments' . $id . '.required' => 'O campo mensagem é obrigatório!' ]; } }
Copyright © 2026 - UnknownSec