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
/
foodbank.codeskitter.site
/
fa8fd
/
..
/
app
/
Http
/
Requests
/
CategoryRequest.php
/
/
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; use Illuminate\Validation\Rule; class CategoryRequest extends FormRequest { /** * 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() { $retArray = [ 'name' => ['required', 'string', Rule::unique("categories", "name")->ignore($this->category), 'max:200'], 'description' => ['nullable', 'string'], 'status' => ['required', 'numeric'], 'image' => 'image|mimes:jpeg,png,jpg|max:2048', ]; $roleID = auth()->user()->myrole ?? 0; if ($roleID > 1) { unset($retArray['status']); } return $retArray; } public function attributes() { return [ 'name' => trans('validation.attributes.name'), 'image' => trans('validation.attributes.image'), 'description' => trans('validation.attributes.description'), 'status' => trans('validation.attributes.status'), ]; } }
/home/users/unlimited/www/foodbank.codeskitter.site/fa8fd/../app/Http/Requests/CategoryRequest.php