diff --git a/app/Http/Middleware/ShopAuthenticate.php b/app/Http/Middleware/ShopAuthenticate.php index 6430f8d3..88a90d05 100644 --- a/app/Http/Middleware/ShopAuthenticate.php +++ b/app/Http/Middleware/ShopAuthenticate.php @@ -27,7 +27,7 @@ class ShopAuthenticate extends Middleware $customer = current_customer(); if ($customer->status != 1) { Auth::guard(Customer::AUTH_GUARD)->logout(); - return redirect(shop_route('account.login')); + return redirect(shop_route('login.index')); } return $next($request); diff --git a/composer.json b/composer.json index 87779eb7..51d57e4e 100644 --- a/composer.json +++ b/composer.json @@ -22,12 +22,12 @@ }, "require-dev": { "barryvdh/laravel-debugbar": "^3.6", - "spatie/laravel-ignition": "^1.0", "fakerphp/faker": "^1.9.1", "laravel/sail": "^1.0.1", "mockery/mockery": "^1.4.4", "nunomaduro/collision": "^6.1", - "phpunit/phpunit": "^9.5.10" + "phpunit/phpunit": "^9.5.10", + "spatie/laravel-ignition": "^1.0" }, "autoload": { "psr-4": { diff --git a/composer.lock b/composer.lock index 4833ed21..c581732a 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "b0d15109abae83061530a0836ca3b001", + "content-hash": "d291ec39fe19eebe5c5e98e9014cda39", "packages": [ { "name": "asm89/stack-cors", @@ -9685,7 +9685,7 @@ "prefer-stable": true, "prefer-lowest": false, "platform": { - "php": "^7.4|^8.0", + "php": "^8.0.2", "ext-json": "*", "ext-zip": "*" },