How to access Aimeos Admin login/Admin panel (Laravel 8 -Jetstream) PHP 7.3

How to configure and adapt Aimeos based shops as developer
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
kwaku
Posts: 1
Joined: 20 Jan 2021, 15:39

How to access Aimeos Admin login/Admin panel (Laravel 8 -Jetstream) PHP 7.3

Post by kwaku » 20 Jan 2021, 15:47

i just installed laravel 8 with jetstream and i went through the aimeos installation documentation on GitHub to install aimeos in to laravel

after successful installation, /admin sends me to laravel default scaffold dashboard.
I then changed the codes in the web.php
to

Code: Select all

Route::middleware(['auth:sanctum', 'verified'])->get('/admin', '\Aimeos\Shop\Controller\AdminController@indexAction')->name('admin');
when i reloaded the page, i get an error that The page isn’t redirecting properly

I need help. Thanks in advance

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

Re: How to access Aimeos Admin login/Admin panel (Laravel 8 -Jetstream) PHP 7.3

Post by aimeos » 21 Jan 2021, 16:55

The problem is most likely that you've added 'auth:sanctum' to the /admin route instead of the jqadm and jsonadm route:
https://github.com/aimeos/aimeos-larave ... hp#L12-L14
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

jaynarayan
Posts: 3
Joined: 12 Aug 2021, 16:14

Re: How to access Aimeos Admin login/Admin panel (Laravel 8 -Jetstream) PHP 7.3

Post by jaynarayan » 12 Aug 2021, 19:56

I am having the same issue

my roite file web.php

Code: Select all

<?php

use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::group(['middleware' => ['web']], function () {
    Route::get('/', '\Aimeos\Shop\Controller\CatalogController@homeAction')->name('aimeos_home');
});
Route::middleware(['auth:sanctum', 'verified'])->get('/dashboard', function () {
    return view('dashboard');
})->name('dashboard');


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

Re: How to access Aimeos Admin login/Admin panel (Laravel 8 -Jetstream) PHP 7.3

Post by aimeos » 13 Aug 2021, 07:08

Seems like Laravel looses the /admin URL stored in the session for redirecting after login for some reason if you go to

Code: Select all

http://127.0.0.1:/admin
and log in using Sanctum.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

wontoneesaju
Posts: 1
Joined: 04 Sep 2021, 08:22

Re: How to access Aimeos Admin login/Admin panel (Laravel 8 -Jetstream) PHP 7.3

Post by wontoneesaju » 04 Sep 2021, 08:40

aimeos wrote: 13 Aug 2021, 07:08 Seems like Laravel looses the /admin URL stored in the session for redirecting after login for some reason if you go to

Code: Select all

http://127.0.0.1:/admin
and log in using Sanctum.
why dont u go and fix this ?

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

Re: How to access Aimeos Admin login/Admin panel (Laravel 8 -Jetstream) PHP 7.3

Post by aimeos » 05 Sep 2021, 12:17

We don't kno why this happens yet. Hints and/or patches are highly welcome!
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply