whoami7 - Manager
:
/
home
/
kckglobal
/
public_html
/
portal
/
app
/
Helper
/
Upload File:
files >> /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; } } }
Copyright ©2021 || Defacer Indonesia