fresh install missing core routes

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!
User avatar
whatdaro
Posts: 42
Joined: 19 May 2021, 17:48

fresh install missing core routes

Post by whatdaro » 28 Aug 2022, 23:32

Laravel: 9.2
Aimeos: 2022.07
php: 8.1

Installing a fresh clean install with composer
composer create-project aimeos/aimeos newshop

The web.php route file contains the below, there are no core routes

$params = [];
$conf = ['prefix' => '', 'where' => []];

if( env( 'SHOP_MULTILOCALE' ) )
{
$conf['prefix'] .= '{locale}';
$conf['where']['locale'] = '[a-z]{2}(\_[A-Z]{2})?';
$params = ['locale' => app()->getLocale()];

Route::get('/admin', function () use ($params) {
return redirect(airoute('aimeos_shop_admin', $params));
});
}

if( env( 'SHOP_MULTISHOP' ) )
{
$conf['prefix'] .= '/{site}';
$conf['where']['site'] = '[A-Za-z0-9\.\-]+';
}

if( $conf['prefix'] )
{
Route::get('/', function () use ($params) {
return redirect(airoute('aimeos_home', $params));
});
}

Route::group($conf ?? [], function() {
require __DIR__.'/auth.php';
});

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

Re: fresh install missing core routes

Post by aimeos » 30 Aug 2022, 07:18

The core routes are not included in the web/routes.php file because they are loaded by the service provider of the extension. You can find them here:
https://github.com/aimeos/aimeos-larave ... routes.php
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
whatdaro
Posts: 42
Joined: 19 May 2021, 17:48

Re: fresh install missing core routes

Post by whatdaro » 31 Aug 2022, 07:46

ok, how can I find what is the service provider for login and admin?
myshop/login is returning 404.
myshop/admin is returning 404.

with previous versions a clean install login and admin would work out of the box.

User avatar
VirtualSpy
Advanced
Posts: 122
Joined: 05 Jul 2022, 07:55

Re: fresh install missing core routes

Post by VirtualSpy » 31 Aug 2022, 09:46

whatdaro wrote: 31 Aug 2022, 07:46 ok, how can I find what is the service provider for login and admin?
myshop/login is returning 404.
myshop/admin is returning 404.

with previous versions a clean install login and admin would work out of the box.
app\Providers\AuthServiceProvider.php

Post Reply