diff --git a/beike/Helpers.php b/beike/Helpers.php index b91d7907..d2fb0e18 100644 --- a/beike/Helpers.php +++ b/beike/Helpers.php @@ -1,15 +1,17 @@ guard(\Beike\Models\AdminUser::AUTH_GUARD)->user(); + return auth()->guard(AdminUser::AUTH_GUARD)->user(); } /** @@ -99,7 +101,7 @@ function currency_format($price): string */ function image_resize($image, int $width = 100, int $height = 100) { - if (\Illuminate\Support\Str::startsWith($image, 'http')) { + if (Str::startsWith($image, 'http')) { return $image; } return asset($image);