How to adapt the rounting for a new site
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
- ArthurHenrique
- Posts: 18
- Joined: 28 Jan 2021, 18:30
How to adapt the rounting for a new site
I have created a new site using /*php artisan aimeos:setup <site code> [<template site>]*/ like the documentation recommended and it works, but I've been some trouble to adapt the rounting. Could someone help me? An example would be great, this is what the documentation said to do:
'routes' => [
'jsonapi' => ['prefix' => '{site}/jsonapi', 'middleware' => ['web', 'api']],
'account' => ['prefix' => '{site}/profile', 'middleware' => ['web', 'auth']],
'default' => ['prefix' => '{site}/shop', 'middleware' => ['web']]
],
Maybe it's a obvious question but I'm really need some help, thanks .
Enviroment:
Windows 10
PHP = 7.2
Laravel = 6.0
Aimeos = 2020.10
'routes' => [
'jsonapi' => ['prefix' => '{site}/jsonapi', 'middleware' => ['web', 'api']],
'account' => ['prefix' => '{site}/profile', 'middleware' => ['web', 'auth']],
'default' => ['prefix' => '{site}/shop', 'middleware' => ['web']]
],
Maybe it's a obvious question but I'm really need some help, thanks .
Enviroment:
Windows 10
PHP = 7.2
Laravel = 6.0
Aimeos = 2020.10
Re: How to adapt the rounting for a new site
Look at your ./config/shop.php file, there you will find the lines you have to change.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star