From 6c37f01ef63cbd518b370c2ccaeccd0052c14bb4 Mon Sep 17 00:00:00 2001 From: Joseph Silber Date: Mon, 18 Mar 2024 23:39:06 -0400 Subject: [PATCH] Update readme with version info --- readme.md | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/readme.md b/readme.md index f1c2de3..f0d3a1c 100644 --- a/readme.md +++ b/readme.md @@ -33,22 +33,16 @@ Using the middleware included in this package, you can selectively cache the res ## Installation +> **Note**: The current version of the `page-cache` packagerequires PHP 8.2+ and Laravel 11+. +> +> If you're on Laravel v5-v10, use [`page-cache` v1.0.9](https://github.com/JosephSilber/page-cache/tree/v1.0.9). + Install the `page-cache` package with composer: ``` $ composer require silber/page-cache ``` -### Service Provider - -> **Note**: If you're using Laravel 5.5+, the service provider will be registered automatically. You can simply skip this step entirely. - -Open `config/app.php` and add a new item to the `providers` array: - -```php -Silber\PageCache\LaravelServiceProvider::class, -``` - ### Middleware Open `app/Http/Kernel.php` and add a new item to the `web` middleware group: @@ -73,8 +67,6 @@ protected $middlewareAliases = [ ]; ``` -> **Note**: Before Laravel 10, `middlewareAliases` was called `routeMiddleware`. They work the exact same way. - Once registered, you can then [use this middleware on individual routes](#using-the-middleware). ### URL rewriting