Revert "Removed EOL php versions"

This reverts commit 79b6a51441.
This commit is contained in:
Patrick Henninger
2019-01-09 12:22:33 +01:00
parent 9bd7f1ab7b
commit 6767fdd944
3 changed files with 22 additions and 15 deletions

View File

@@ -10,12 +10,24 @@ This is a fork of [Crisane's LaravelShoppingcart](https://github.com/Crinsane/La
## Installation
Install the [package](https://packagist.org/packages/bumbummen99/shoppingcart) through [Composer](http://getcomposer.org/).
Install the package 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**