Skip to content

Commit d8f33c3

Browse files
authored
Merge pull request #80 from SimoTod/patch-1
Update installation instruction
2 parents 27e7556 + 13f832e commit d8f33c3

File tree

1 file changed

+6
-21
lines changed

1 file changed

+6
-21
lines changed

README.md

Lines changed: 6 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -7,36 +7,21 @@ A Shopping Cart Implementation for Laravel Framework
77

88
##INSTALLATION
99

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

12-
### Laravel 5
13-
14-
```php
15-
"require": {
16-
"laravel/framework": "5.0.*",
17-
"darryldecode/cart": "dev-master"
18-
}
19-
```
20-
21-
Next, run the Composer update command from the Terminal:
22-
23-
composer update
24-
25-
or
26-
27-
composer update "darryldecode/cart"
12+
composer require "darryldecode/cart"
2813

2914
##CONFIGURATION
3015

31-
1. Open config/app.php and addd this line to your Service Providers Array
16+
1. Open config/app.php and add this line to your Service Providers Array
3217
```php
33-
'Darryldecode\Cart\CartServiceProvider'
18+
Darryldecode\Cart\CartServiceProvider::class
3419
```
3520

36-
2. Open config/app.php and addd this line to your Aliases
21+
2. Open config/app.php and add this line to your Aliases
3722

3823
```php
39-
'Cart' => 'Darryldecode\Cart\Facades\CartFacade'
24+
'Cart' => Darryldecode\Cart\Facades\CartFacade::class
4025
```
4126

4227
## HOW TO USE

0 commit comments

Comments
 (0)