Laravel aimeos HomePage

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!
rouissi
Posts: 1
Joined: 08 Jul 2018, 11:52

Laravel aimeos HomePage

Post by rouissi » 10 Jul 2018, 14:10

hi firends , i amnew in this and never worked on laravel before , i needto know how to change the homepage from welcome.blade.php to the file that refers to /list
how to change the home page to /list contents !

thanx all !

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

Re: Laravel aimeos HomePage

Post by aimeos » 10 Jul 2018, 20:14

You can either redirect to the list page:

Code: Select all

Route::get('', function () {
    return redirect('list');
});
Or you can define the Aimeos list page to be the home page:

Code: Select all

Route::group(config('shop.routes.default', ['middleware' => ['web']]), function() {
        Route::match( array( 'GET', 'POST' ), '', array(
                'as' => 'aimeos_shop_list',
                'uses' => '\Aimeos\Shop\Controller\CatalogController@listAction'
        ));
});
This forum is not suited for learning Laravel. If you need help to understand Laravel, there are much better forums out there, e.g. the laravel.io forum.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply