Skip to content

Commit f3938b7

Browse files
authoredNov 6, 2018
Update README.md
1 parent 1d66880 commit f3938b7

File tree

1 file changed

+5
-27
lines changed

1 file changed

+5
-27
lines changed
 

‎README.md

+5-27
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ Laravel middleware for full page caching.
77

88
- [How do I get this in my app?](#how-do-i-get-this-in-my-app)
99
- [Composer](#composer)
10-
- [Getting files manually](#getting-files-manually)
1110
- [Binding it to your app](#binding-it-to-your-app)
1211
- [How do I use it?](#how-do-i-use-it)
1312
- [Middleware](#middleware)
@@ -21,35 +20,14 @@ Laravel middleware for full page caching.
2120

2221
## How do I get this in my app?
2322

24-
### Composer
25-
26-
Open your `copmoser.json` file, find the `require` key and add this value :
27-
28-
"glaivepro/cachepage": "^1.1.0"
29-
30-
The version `^1.1.0` is for Laravel 5.4, if you are using an older version, go for `~1.0.0`.
31-
32-
Execute `composer update`.
33-
34-
### Getting files manually
35-
36-
If, for some reason you can't or don't want to download package using composer, you should download the files and put all of the contents in `/vendor/glaivepro/cachepage/` folder.
37-
38-
Add this to your `composer.json` file (if the autoload and psr-4 keys are already there, just leave them and the contents and only add what's missing):
39-
40-
```json
41-
"autoload": {
42-
"psr-4": {
43-
"GlaivePro\\CachePage\\": "vendor/glaivepro/cachepage/src/GlaivePro/CachePage",
44-
}
45-
}
23+
``` bash
24+
$ composer require glaivepro/cachepage
4625
```
47-
48-
Run `composer dump-autoload` command.
49-
50-
26+
5127
### Binding it to your app
5228

29+
> Skip this section if you are using package discovery which is default for recent versions of Laravel.
30+
5331
Firt of all you have to register the service provider.
5432

5533
Open `config/app.php` and find the `providers` key. Add this line to the array.

0 commit comments

Comments
 (0)
Please sign in to comment.