Install issue Aimeos 2016.10 on Laravel 5.3

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!
Ouarech
Posts: 1
Joined: 27 Mar 2017, 15:51

Install issue Aimeos 2016.10 on Laravel 5.3

Post by Ouarech » 27 Mar 2017, 15:58

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.

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

Re: Install issue Aimeos 2016.10 on Laravel 5.3

Post by aimeos » 27 Mar 2017, 16:10

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 );
	});
}
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply