File tree Expand file tree Collapse file tree 1 file changed +4
-12
lines changed
Expand file tree Collapse file tree 1 file changed +4
-12
lines changed Original file line number Diff line number Diff 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+
3640Install 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
5448Open ` 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-
7870Once registered, you can then [ use this middleware on individual routes] ( #using-the-middleware ) .
7971
8072### URL rewriting
You can’t perform that action at this time.
0 commit comments