2022.10 routing issues

Help for integrating the Laravel package
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!
columbo
Advanced
Posts: 126
Joined: 09 Oct 2019, 09:42

2022.10 routing issues

Post by columbo » 14 Oct 2022, 07:00

Hi,

new Laravel 9 installation with Aimeos 2022.10 and auth with Jetstream and Livewire:
(on localhost, xampp vhots etc. set accordingly)
- localhost shows the laravel startpage, as accpected
- but localhost/login or localhost/register -> 404 not found

But when adding laravel/fortify routes.php to aimeos-laravel routes:
in \vendor\aimeos\aimeos-laravel\src\routes.php add

Code: Select all

require base_path() . '/vendor/laravel/fortify/routes/routes.php';
...
/login, /register and /shop works fine.

Shouldn't the two routes (from aimeos and fortify) be used automatically?
It seems like something is mixed up with routing.
I have no clue why, as I'm following the Laravel, Aimeos and Jetstream installation guides. Whats missing or wrong?

Thank you!

User avatar
aimeos
Administrator
Posts: 7915
Joined: 01 Jan 1970, 00:00

Re: 2022.10 routing issues

Post by aimeos » 15 Oct 2022, 13:37

In 2022.10, the prefix for the CMS pages has been moved away from Aimeos routes.php but that causes a lot of trouble.
We've changed that back again in aimeos/aimeos-laravel:2022.10.x-dev. Can you please test if it works again after updating?

Code: Select all

composer req aimeos/aimeos-laravel:2022.10.x-dev
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

columbo
Advanced
Posts: 126
Joined: 09 Oct 2019, 09:42

Re: 2022.10 routing issues

Post by columbo » 17 Oct 2022, 18:21

now its working - thank you!

Post Reply