mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 16:14:03 +00:00
Changing null coalescing to Laravel's optional helper method for PHP 7.3 support.
This commit is contained in:
parent
45e0aad091
commit
9eb82922d7
1 changed files with 1 additions and 1 deletions
|
|
@ -54,7 +54,7 @@ class UserImpersonation implements Feature
|
|||
$token->delete();
|
||||
|
||||
session()->put(
|
||||
'tenancy_impersonated_by', Auth::user()?->getAuthIdentifier()
|
||||
'tenancy_impersonated_by', optional(Auth::user())->getAuthIdentifier()
|
||||
);
|
||||
|
||||
return redirect($token->redirect_url);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue