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
/
TableRequest.php
/
/
<?php namespace App\Http\Requests; use App\Models\Table; use Illuminate\Foundation\Http\FormRequest; use Illuminate\Validation\Rule; class TableRequest 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() { return [ 'name' => ['required', 'string', 'max:255'], 'capacity' => ['required', 'numeric', 'min:0'], 'status' => ['required', 'numeric'], 'restaurant_id' => 'required|numeric', ]; } public function attributes() { return [ 'name' => trans('validation.attributes.name'), 'capacity' => trans('validation.attributes.capacity'), 'restaurant_id' => trans('validation.attributes.restaurant'), 'status' => trans('validation.attributes.status'), ]; } public function withValidator($validator) { $validator->after(function ($validator) { if ($this->categoryNameUniqueCheck()) { $validator->errors()->add('name', 'The table name already exists.'); } }); } private function categoryNameUniqueCheck() { $id = $this->table; $queryArray['name'] = request('name'); $queryArray['restaurant_id'] = request('restaurant_id'); $tables = Table::where($queryArray)->where('id', '!=', $id)->first(); if (blank($tables)) { return false; } return true; } }
/home/users/unlimited/www/foodbank.codeskitter.site/fa8fd/../app/Http/Requests/TableRequest.php