Open pankajsondagar opened 3 months ago
$customer = User::find($request->userId);
$data = Auth::user()->impersonate($customer);
Is there any way to make it working in API's?
Maybe https://github.com/404labfr/laravel-impersonate/issues/183#issuecomment-2090775228
TokenGuard is Macroable laravel/passport/Guards/TokenGuard.php#L28-L30
TokenGuard
Macroable
$customer = User::find($request->userId);
$data = Auth::user()->impersonate($customer);
Is there any way to make it working in API's?