Skip to content

Commit

Permalink
Merge pull request #80 from SimoTod/patch-1
Browse files Browse the repository at this point in the history
Update installation instruction
  • Loading branch information
darryldecode authored Mar 8, 2017
2 parents 27e7556 + 13f832e commit d8f33c3
Showing 1 changed file with 6 additions and 21 deletions.
27 changes: 6 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,36 +7,21 @@ A Shopping Cart Implementation for Laravel Framework

##INSTALLATION

Install the package through [Composer](http://getcomposer.org/). Edit your project's `composer.json` file by adding:
Install the package through [Composer](http://getcomposer.org/).

### Laravel 5

```php
"require": {
"laravel/framework": "5.0.*",
"darryldecode/cart": "dev-master"
}
```

Next, run the Composer update command from the Terminal:

composer update

or

composer update "darryldecode/cart"
composer require "darryldecode/cart"

##CONFIGURATION

1. Open config/app.php and addd this line to your Service Providers Array
1. Open config/app.php and add this line to your Service Providers Array
```php
'Darryldecode\Cart\CartServiceProvider'
Darryldecode\Cart\CartServiceProvider::class
```

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

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

## HOW TO USE
Expand Down

0 comments on commit d8f33c3

Please sign in to comment.