Help for integrating the Laravel package
Forum rules: Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
#4345 by bill
26 Jun 2017, 16:37
In my AppServiceProvider.php I have this in boot()
Code: Select all public function boot()

      $minibasket = app( '\Aimeos\Shop\Base\Page' )->getSections( 'aimeosall' );
       view()->share('var', $minibasket);


this is getting me an error:
Code: Select all [InvalidArgumentException]                       
  Route [aimeos_shop_jsonapi_options] not defined.

Do you know what is going on with this?
#4346 by bill
26 Jun 2017, 18:23
in my config/app.php I have changed the order
Code: Select all 'providers' => [

now I am getting not getting the error but the mini cart but its always empty, you know why?
#4349 by aimeos
28 Jun 2017, 21:56
Have you tried to move both Laravel service providers at the end of the array? Could be that required services aren't instantiated when you put the Aimeos service provider and yours first.