Skip to content

Commit 13f832e

Browse files
authored
Update installation instruction
If we suggest to use dev-master, any BC will break websites already in production. `composer require` installs the last tagged version and updates composer.json correctly so it will only allow tagged versions without BC (same major release number).
1 parent a262cd4 commit 13f832e

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)