mirror of
https://github.com/kevin-DL/LaravelShoppingcart.git
synced 2026-01-11 18:54:33 +00:00
Removed EOL php versions
Added secondary build for low dependency versions Adjusted dependencies to supported php versions
This commit is contained in:
14
README.md
14
README.md
@@ -10,24 +10,12 @@ This is a fork of [Crisane's LaravelShoppingcart](https://github.com/Crinsane/La
|
||||
|
||||
## Installation
|
||||
|
||||
Install the package through [Composer](http://getcomposer.org/).
|
||||
Install the [package](https://packagist.org/packages/bumbummen99/shoppingcart) through [Composer](http://getcomposer.org/).
|
||||
|
||||
Run the Composer require command from the Terminal:
|
||||
|
||||
composer require bumbummen99/shoppingcart
|
||||
|
||||
If you're using Laravel 5.5, this is all there is to do.
|
||||
|
||||
Should you still be on version 5.4 of Laravel, the final steps for you are to add the service provider of the package and alias the package. To do this open your `config/app.php` file.
|
||||
|
||||
Add a new line to the `providers` array:
|
||||
|
||||
Gloudemans\Shoppingcart\ShoppingcartServiceProvider::class
|
||||
|
||||
And optionally add a new line to the `aliases` array:
|
||||
|
||||
'Cart' => Gloudemans\Shoppingcart\Facades\Cart::class,
|
||||
|
||||
Now you're ready to start using the shoppingcart in your application.
|
||||
|
||||
**As of version 2 of this package it's possibly to use dependency injection to inject an instance of the Cart class into your controller or other class**
|
||||
|
||||
Reference in New Issue
Block a user