Aimeos routes
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!
Aimeos routes
Hi, I can't find aimeos routes.
Where are location of aimeos routes?
I'm using latest version of aimeos.
Thanks for help!
Where are location of aimeos routes?
I'm using latest version of aimeos.
Thanks for help!
Re: Aimeos routes
They are there: https://github.com/aimeos/aimeos-larave ... routes.php
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
Re: Aimeos routes
So if I want to change product listing page name instead "list" to "products" how I could do that?
Re: Aimeos routes
Laravel allows you to overwrite routes in the routes/web.php file. Might be something like this:
But I'm not 100% sure. If this doesn't work, please ask in the Laravel forums for help.
Code: Select all
Route::group(config('shop.routes.default', ['middleware' => ['web']]), function() {
Route::match( array( 'GET', 'POST' ), 'products', array(
'as' => 'aimeos_shop_list',
'uses' => 'Aimeos\Shop\Controller\CatalogController@listAction'
));
});
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
Re: Aimeos routes
I get "CatalogController does not exist" error, but thanks I will try to figure it out.
Re: Aimeos routes
I found a solution.
In config/app.php in the providers array put the service provider of the package before App\Providers\RouteServiceProvider::class, and then in your web.php routes you'll be able to override it with your custom route.
Also need to change route code and add slash.
Instead this:
Do this:
https://stackoverflow.com/questions/447 ... ckage?rq=1
In config/app.php in the providers array put the service provider of the package before App\Providers\RouteServiceProvider::class, and then in your web.php routes you'll be able to override it with your custom route.
Also need to change route code and add slash.
Instead this:
Code: Select all
'uses' => 'Aimeos\Shop\Controller\CatalogController@listAction'
Code: Select all
'uses' => '\Aimeos\Shop\Controller\CatalogController@listAction'