Файловый менеджер - Редактировать - /home/kckglobal/public_html/portal/app/Helper/UserService.php
Назад
<?php namespace App\Helper; use App\Models\User; use App\Models\ClientContact; class UserService { public static function getUserId() { if (user()?->is_client_contact == 1) { $clientContact = ClientContact::where('client_id', user()->id)->first(); $client = User::where('id', $clientContact->user_id)->first(); return $client->id; } else { return user()?->id; } } }
| ver. 1.4 |
Github
|
.
| PHP 8.2.28 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка