Skip to content

Commit

Permalink
remove user() return type
Browse files Browse the repository at this point in the history
  • Loading branch information
stepanenko3 committed Oct 12, 2022
1 parent 2071d52 commit 20d5837
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ function get_initials(
}

if (!function_exists('user')) {
function user(): User | null
function user()
{
return request()->is('api/*')
? auth()->guard('api')->user()
Expand Down

0 comments on commit 20d5837

Please sign in to comment.