Help for integrating the Laravel package
Forum rules: Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
#8054 by Dhara1510
17 May 2019, 13:23
I want a user to login before checkout the order.

Current scenario: User can add product to cart and do checkout without login

Required scenario: User can add product to cart. User has to login when he want to do checkout. When user click on it should redirect user to login page.

How can it be done? Can you please guide me?
#8057 by AnthonyLim
17 May 2019, 16:05
Not exactly what you ask for, but what I did was to make the user login even before shopping. It's pretty easy; just edit config/shop.php and configure the "routes" like so:
Code: Select all'routes' => [
      'default' => ['prefix' => 'shop', 'middleware' => ['web','auth']],
],