Skip to content

Commit 6c37f01

Browse files
committed
Update readme with version info
1 parent 1e20afd commit 6c37f01

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

readme.md

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -33,22 +33,16 @@ Using the middleware included in this package, you can selectively cache the res
3333

3434
## Installation
3535

36+
> **Note**: The current version of the `page-cache` packagerequires PHP 8.2+ and Laravel 11+.
37+
>
38+
> If you're on Laravel v5-v10, use [`page-cache` v1.0.9](https://github.com/JosephSilber/page-cache/tree/v1.0.9).
39+
3640
Install the `page-cache` package with composer:
3741

3842
```
3943
$ composer require silber/page-cache
4044
```
4145

42-
### Service Provider
43-
44-
> **Note**: If you're using Laravel 5.5+, the service provider will be registered automatically. You can simply skip this step entirely.
45-
46-
Open `config/app.php` and add a new item to the `providers` array:
47-
48-
```php
49-
Silber\PageCache\LaravelServiceProvider::class,
50-
```
51-
5246
### Middleware
5347

5448
Open `app/Http/Kernel.php` and add a new item to the `web` middleware group:
@@ -73,8 +67,6 @@ protected $middlewareAliases = [
7367
];
7468
```
7569

76-
> **Note**: Before Laravel 10, `middlewareAliases` was called `routeMiddleware`. They work the exact same way.
77-
7870
Once registered, you can then [use this middleware on individual routes](#using-the-middleware).
7971

8072
### URL rewriting

0 commit comments

Comments
 (0)