mirror of
https://github.com/kevin-DL/LaravelShoppingcart.git
synced 2026-01-23 23:51:25 +00:00
[Fix] ServiceContainer: Bind class to app
This commit is contained in:
@@ -14,6 +14,8 @@ class ShoppingcartServiceProvider extends ServiceProvider
|
|||||||
*/
|
*/
|
||||||
public function register()
|
public function register()
|
||||||
{
|
{
|
||||||
|
$this->app->bind('cart', 'Gloudemans\Shoppingcart\Cart');
|
||||||
|
|
||||||
$config = __DIR__ . '/../config/cart.php';
|
$config = __DIR__ . '/../config/cart.php';
|
||||||
$this->mergeConfigFrom($config, 'cart');
|
$this->mergeConfigFrom($config, 'cart');
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user