Modules

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!
geramv22
Posts: 2
Joined: 07 Nov 2023, 08:36

Modules

Post by geramv22 » 09 Nov 2023, 15:10

Hello everyone, I have a problem that I cannot find in the aimeos 2023 documentation, I have created an extension with the available tool and I want to include an override for the routes within the module itself, as it should be done, thank you!

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

Re: Modules

Post by aimeos » 10 Nov 2023, 07:49

Disable the route groups in your ./config/shop.php by setting them to "false":
https://github.com/aimeos/aimeos-larave ... hp#L13-L30

Then, copy the routes you've disabled to your ./routes/web.php file:
https://github.com/aimeos/aimeos-larave ... aimeos.php
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

geramv22
Posts: 2
Joined: 07 Nov 2023, 08:36

Re: Modules

Post by geramv22 » 10 Nov 2023, 08:12

aimeos wrote: 10 Nov 2023, 07:49 Disable the route groups in your ./config/shop.php by setting them to "false":
https://github.com/aimeos/aimeos-larave ... hp#L13-L30

Then, copy the routes you've disabled to your ./routes/web.php file:
https://github.com/aimeos/aimeos-larave ... aimeos.php

Thanks is ok, but i need override files web.php or aimeos.php in my extension don't modify files kernel aimeos or laravel, thanks, I don't know if it's possible

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

Re: Modules

Post by aimeos » 10 Nov 2023, 08:23

Only change files in your Laravel application, not in the ./vendor/ directory, so .../app/config/shop.php and .../app/routes/web.php are the right files.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply