moltin / laravel-cart

Laravel Facade and Service Provider for Moltin\Cart
276 stars 87 forks source link

Class 'Moltin\\Cart\\CartServiceProvider' not found in fresh Moltin/Cart installation #37

Open LittleBigThingUK opened 10 years ago

LittleBigThingUK commented 10 years ago

Hi,

I wanted to try Moltin/Cart package in my application. I just added package via Composer and made an update.

Added service provider: 'Moltin\Cart\CartServiceProvider',

Than alias: 'Cart' => 'Moltin\Cart\Facade',

I also made autoload dump. composer dump-autoload

Now when I try for example to update composer, I'm getting an error: {"error":{"type":"Symfony\\Component\\Debug\\Exception\\FatalErrorException","message":"Class 'Moltin\\Cart\\CartServiceProvider' not found"

I'm getting that error even on a fresh laravel installations.

veriyigini commented 9 years ago

I got same error. I'm waiting for solution. My laravel versin: "laravel/framework": "4.2.*",

LittleBigThingUK commented 9 years ago

Ok, I think I've found a problem. Everything is fine with the package. The problem was my composer. Instead of: "moltin/laravel-cart": "dev-master"

I've entered "moltin/cart": "dev-master"

@veriyigini check Your composer.

veriyigini commented 9 years ago

thanks for your help I thing there is a problem on my composer I got same error currently And my intervention/image ServiceProvider it is not found too