uawdijnntqw1x1x1
IP : 216.73.216.93
Hostname : panel.codeskitter.com
Kernel : Linux panel.codeskitter.com 6.8.0-100-generic #100-Ubuntu SMP PREEMPT_DYNAMIC Tue Jan 13 16:40:06 UTC 2026 x86_64
Disable Function : apache_child_terminate, apache_note, apache_setenv, define_syslog_variables, dl, link, opcache_get_status, openlog, pcntl_exec, pcntl_fork, pcntl_setpriority, popen, posix_getpwuid, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid, posix_setuid
OS : Linux
PATH:
/
home
/
users
/
unlimited
/
www
/
learnoid.codeskitter.site
/
app
/
Http
/
Requests
/
ChapterUpdateRequest.php
/
/
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; class ChapterUpdateRequest 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 [ 'title' => 'required|string|max:500', 'serial_number' => 'required|integer', 'contents' => 'required|array|min:1', 'contents.*.media' => 'file|mimes:jpeg,png,jpg,mp4,mpeg,mp3,wav,webm,ogg,raw,pdf|max:1048576', 'contents.*.title' => 'required|string|max:500', 'contents.*.serial_number' => 'required|integer', 'contents.*.is_forwardable' => '', 'contents.*.is_free' => '', 'contents.*.link' => [ 'nullable', 'regex:/^<iframe\s+.*?src=["\']https?:\/\/[^\s"\'<>]+["\'].*?><\/iframe>$/', ], 'contents.*.duration' => '' ]; } /** * Get custom error messages for specific validation rules. */ public function messages(): array { return [ 'course_id.required' => 'Please select a course.', 'course_id.exists' => 'The selected course does not exist.', 'title.required' => 'Please provide a title for the chapter.', 'title.max' => 'The title can have a maximum of 500 characters.', 'serial_number.required' => 'Please provide a serial number.', 'serial_number.integer' => 'The serial number must be a valid number.', 'contents.required' => 'Please add at least one content item.', 'contents.array' => 'The contents must be provided as a list.', 'contents.min' => 'Please add at least one content item.', 'contents.*.media.file' => 'Each media file must be a valid file.', 'contents.*.media.mimes' => 'The media file must be one of the following types: jpeg, png, jpg, gif, svg, mp4, mpeg, mp3, wav, webm, ogg, raw or pdf.', 'contents.*.media.max' => 'The media file size must not exceed 1 GB.', 'contents.*.media.required_without' => 'Please provide either a media file or a valid link for each content item.', 'contents.*.link.regex' => 'The link must be a valid iframe containing a video source', 'contents.*.title.required' => 'Please provide a title for each content item.', 'contents.*.title.max' => 'The content title can have a maximum of 500 characters.', 'contents.*.serial_number.required' => 'Please provide a serial number for each content item.', 'contents.*.serial_number.integer' => 'The serial number for each content item must be a valid number.', ]; } }
/home/users/unlimited/www/learnoid.codeskitter.site/app/Http/Requests/ChapterUpdateRequest.php