vendredi 28 juillet 2017

Error in accessing Class after Package install in Laravel

I Downloaded a Package known as Laravel Shopping Cart darryldecode/cart:~3.0

According to Instruction I have made changes to app.php

1 - Open config/app.php and add this line to your Service Providers Array

Darryldecode\Cart\CartServiceProvider::class

2 - Open config/app.php and add this line to your Aliases

'Cart' => Darryldecode\Cart\Facades\CartFacade::class

Now Whenever i try to access the class like shown below

Cart::add(455, 'Sample Item', 100.99, 2, array());

It gives an error saying Class Cart not Found, I have cleared the cache & views file also, but still no luck.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire