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
/
CourseUpdateRequest.php
/
/
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; class CourseUpdateRequest 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 [ 'category_id' => 'exists:categories,id', 'title' => 'string|min:5|max:500', 'media' => "image|mimes:jpeg,png,jpg|max:10240", 'video' => 'file|mimes:mp4,mpeg|max:1048576', 'description' => 'required|array|min:1', 'description.*.heading' => 'required|string', 'description.*.body' => 'required|string', 'regular_price' => 'required|numeric|min:' . ((float) config('app.minimum_amount')), 'price' => [ 'nullable', 'numeric', function ($attribute, $value, $fail) { if ($value > 0 && $value < (float) config('app.minimum_amount')) { $fail('The price must be at least ' . config('app.minimum_amount') . ' if greater than 0.'); } }, ], 'instructor_id' => 'exists:instructors,id', 'is_active' => 'nullable', ]; } /** * Get custom validation messages. * * @return array */ public function messages(): array { return [ 'title.min' => 'The title must be at least 5 characters.', 'title.max' => 'The title may not be greater than 500 characters.', 'instructor_id.required' => 'The instructor field is required.', 'instructor_id.exists' => 'The selected instructor is invalid.', 'category_id.required' => 'The category field is required.', 'category_id.exists' => 'The selected category is invalid.', 'media.required' => 'The thumbnail field is required.', 'media.image' => 'The thumbnail must be an image.', 'media.mimes' => 'The thumbnail must be a file of type: jpeg, png, jpg.', 'media.max' => 'The thumbnail may not be greater than 2 MB.', 'regular_price.min' => 'The regular price must be at least ' . config('app.minimum_amount'), 'price.min' => 'The price must be at least ' . config('app.minimum_amount'), 'description.required' => 'The description field is required.', ]; } }
/home/users/unlimited/www/learnoid.codeskitter.site/app/Http/Requests/CourseUpdateRequest.php