⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.184
Server IP:
65.21.180.239
Server:
Linux gowhm.eplangoweb.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.0.30
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
eplangoweb
/
www
/
app
/
Http
/
Requests
/
Package
/
View File Name :
PackageUpdateRequest.php
<?php namespace App\Http\Requests\Package; use Illuminate\Foundation\Http\FormRequest; class PackageUpdateRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize(): bool { return true; } /** * Get the validation rules that apply to the request. * * @return array */ public function rules(): array { return [ 'title' => 'required|max:255', 'icon' => 'required', 'price' => 'required', 'term' => 'required', 'serial_number' => 'required|integer', 'trial_days' => $this->is_trial == "1" ? 'required' : '', 'video_size_limit' => in_array('Course Management', $this->features) ? 'required|integer' : '', 'file_size_limit' => in_array('Course Management', $this->features) ? 'required|integer' : '', 'number_of_vcards' => in_array('vCard', $this->features) ? 'required|integer' : '', ]; } public function messages(): array { return [ 'trial_days.required' => 'Trial days is required when trial option is checked', 'video_size_limit.required' => 'Maximum Size of Single File is required when Course Management option is checked', 'file_size_limit.required' => 'Maximum Size of Single Video is required when Course Management option is checked', ]; } }