Page 1 of 1

Install issue Aimeos 2016.10 on Laravel 5.3

Posted: 27 Mar 2017, 15:58
by Ouarech
Hello,

I followed the steps of the tutorial
https://github.com/aimeos/aimeos-larave ... el-package

I tried to install Aimeos 2016.10 in Laravel 5.3.
The list displays went ok but when I reached the Admin part I got an error.

When I launched
http://127.0.0.1:8000/index.php/admin
I got directed to URL
http://127.0.0.1:8000/index.php/jqadm/s ... lt&lang=fr
with
{"error":"unauthenticated.","message":"Non authentifi\u00e9"}
in the page

Did I missed something in the steps?

Thank your for help.

Re: Install issue Aimeos 2016.10 on Laravel 5.3

Posted: 27 Mar 2017, 16:10
by aimeos
Does your "app/Providers/AuthServiceProvider.php" contains these lines:

Code: Select all

public function boot()
{
	// Keep the lines before

	Gate::define('admin', function($user, $roles) {
		return app( '\Aimeos\Shop\Base\Support' )->checkGroup( $user->id, $roles );
	});
}