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
/
Services
/
TableService.php
/
/
<?php namespace App\Http\Services; use App\Enums\TableStatus; use App\Enums\UserRole; use App\Models\Table; use Illuminate\Http\Request; class TableService { public function allTables($request) { $q = trim($request->id); $queryArray = []; if (auth()->user()->myrole == UserRole::WAITER) { $queryArray['restaurant_id'] = auth()->user()->waiter->restaurant->id; } else { $queryArray['restaurant_id'] = auth()->user()->restaurant ? auth()->user()->restaurant->id : []; } if ($q) { $this->data['tables'] = Table::where($queryArray)->where('name', 'like', '%' . $q . '%')->where('status', TableStatus::ENABLE)->descending()->get(); } else { $this->data['tables'] = Table::where($queryArray)->where('status', TableStatus::ENABLE)->descending()->get(); } return $this->data['tables']; } public function store(Request $request) { $table = new Table; $table->name = $request->name; $table->capacity = $request->capacity; $table->status = $request->status; $table->restaurant_id = $request->restaurant_id; $table->save(); return $table; } public function update(Request $request, $table) : void { $table->name = $request->name; $table->capacity = $request->capacity; $table->restaurant_id = $request->restaurant_id; $table->status = $request->status; $table->save(); } public function delete($table) { $table->delete(); } }
/home/users/unlimited/www/foodbank.codeskitter.site/fa8fd/../app/Http/Services/TableService.php