UnknownSec Bypass
403
:
/
mnt
/
lmsestudio-instance-vol002
/
lms_d5be14f5abaa
/
app
/
Http
/
Requests
/
Courses
/ [
drwxr-xr-x
]
Menu
Upload
Mass depes
Mass delete
Terminal
Info server
About
name :
LessonRequest.php
<?php namespace EstudioLMS\Http\Requests\Courses; use EstudioLMS\Http\Requests\Request; /** * Class LessonRequest * @package EstudioLMS\Http\Requests\Curses */ class LessonRequest 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() { $type = Request::get('type'); $id = Request::get('id'); $zipRule = 'sometimes|mimes:zip,rar,targz,tar,pdf|max:2048'; if ($type == 'F' && empty($id)) { $zipRule='required'; } if ($type == 'H' && empty($id)) { $zipRule = 'required|mimes:htm,html,xml|max:2048'; } return [ 'zip_file' => $zipRule, 'name' => 'required', 'url' => 'sometimes|required' ]; } /** * @return array */ public function attributes() { return [ 'zip_file' => 'Arquivo Compactado', 'name' => 'Nome da Lição', 'url' => 'URL do Vídeo' ]; } }
Copyright © 2026 - UnknownSec