Removed EOL php versions

Added secondary build for low dependency versions
Adjusted dependencies to supported php versions
This commit is contained in:
Patrick Henninger
2019-01-08 17:40:31 +01:00
parent debfeffdb2
commit 79b6a51441
3 changed files with 15 additions and 22 deletions

View File

@@ -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**