Skip to content

Commit ff2745f

Browse files
authored
Update readme.md
1 parent 3f0a750 commit ff2745f

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

Diff for: readme.md

+15-6
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,30 @@
11
## HttpCache for Laravel
2+
[![Tests](https://github.com/barryvdh/laravel-httpcache/workflows/Tests/badge.svg)](https://github.com/barryvdh/laravel-httpcache/actions)
3+
[![Packagist License](https://poser.pugx.org/barryvdh/laravel-httpcache/license.png)](http://choosealicense.com/licenses/mit/)
4+
[![Latest Stable Version](https://poser.pugx.org/barryvdh/laravel-httpcache/version.png)](https://packagist.org/packages/barryvdh/laravel-httpcache)
5+
[![Total Downloads](https://poser.pugx.org/barryvdh/laravel-httpcache/d/total.png)](https://packagist.org/packages/barryvdh/laravel-httpcache)
6+
[![Fruitcake](https://img.shields.io/badge/Powered%20By-Fruitcake-b2bc35.svg)](https://fruitcake.nl/)
27

3-
### For Laravel 4.1+, require [v0.1.x](https://github.com/barryvdh/laravel-httpcache/tree/v0.1.1)
4-
5-
Laravel 5 can use [HttpKernelInterface Middlewares](http://stackphp.com/middlewares/), so also [HttpCache](http://symfony.com/doc/current/book/http_cache.html).
8+
Laravel can use [HttpKernelInterface Middlewares](http://stackphp.com/middlewares/), so also [HttpCache](http://symfony.com/doc/current/book/http_cache.html).
69
This package provides a simple ServiceProvider to get you started with HttpCache.
710

811
First, require this package with composer
912

10-
composer require barryvdh/laravel-httpcache
13+
```
14+
composer require barryvdh/laravel-httpcache
15+
```
1116

1217
After updating, add the ServiceProvider to the array of providers in app/config/app.php
1318

14-
'Barryvdh\HttpCache\ServiceProvider',
19+
```
20+
'Barryvdh\HttpCache\ServiceProvider',
21+
```
1522

1623
You can now add the Middleware to your Kernel:
1724

18-
'Barryvdh\HttpCache\Middleware\CacheRequests',
25+
```
26+
'Barryvdh\HttpCache\Middleware\CacheRequests',
27+
```
1928

2029
Caching is now enabled, for public responses. Just set the Ttl or MaxSharedAge
2130

0 commit comments

Comments
 (0)