From 1d9c6f7ec458a2926d8247e5d19609153775fab7 Mon Sep 17 00:00:00 2001 From: Brandon Date: Wed, 31 Jan 2024 04:06:54 -0600 Subject: [PATCH] =?UTF-8?q?=E2=9E=95=20Add=20`spatie/laravel-responsecache?= =?UTF-8?q?`=20to=20the=20project?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Http/Kernel.php | 2 + composer.json | 3 +- composer.lock | 146 +++++++++++++++++++++++++++++++++++++++++++- 3 files changed, 149 insertions(+), 2 deletions(-) diff --git a/app/Http/Kernel.php b/app/Http/Kernel.php index 060f137..bce540c 100644 --- a/app/Http/Kernel.php +++ b/app/Http/Kernel.php @@ -37,6 +37,7 @@ class Kernel extends HttpKernel \App\Http\Middleware\VerifyCsrfToken::class, \Illuminate\Routing\Middleware\SubstituteBindings::class, \App\Http\Middleware\AddSeoDefaults::class, + \Spatie\ResponseCache\Middlewares\CacheResponse::class, ], 'api' => [ @@ -65,5 +66,6 @@ class Kernel extends HttpKernel 'signed' => \App\Http\Middleware\ValidateSignature::class, 'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class, 'verified' => \Illuminate\Auth\Middleware\EnsureEmailIsVerified::class, + 'doNotCacheResponse' => \Spatie\ResponseCache\Middlewares\DoNotCacheResponse::class, ]; } diff --git a/composer.json b/composer.json index d2253f4..0bd49c8 100644 --- a/composer.json +++ b/composer.json @@ -18,7 +18,8 @@ "livewire/livewire": "^3.3", "romanzipp/laravel-seo": "^2.6", "ryangjchandler/orbit": "^1.2", - "sinnbeck/markdom": "^2.0" + "sinnbeck/markdom": "^2.0", + "spatie/laravel-responsecache": "^7.4" }, "require-dev": { "barryvdh/laravel-debugbar": "^3.9", diff --git a/composer.lock b/composer.lock index f475e55..2980aba 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "6486a721bc88b3f3c97c755d0b77f5ee", + "content-hash": "3a5f1753e1bbce962b77fe82b322e310", "packages": [ { "name": "blade-ui-kit/blade-heroicons", @@ -3803,6 +3803,150 @@ }, "time": "2022-07-25T13:21:50+00:00" }, + { + "name": "spatie/laravel-package-tools", + "version": "1.16.2", + "source": { + "type": "git", + "url": "https://github.com/spatie/laravel-package-tools.git", + "reference": "e62eeb1fe8a8a0b2e83227a6c279c8c59f7d3a15" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/spatie/laravel-package-tools/zipball/e62eeb1fe8a8a0b2e83227a6c279c8c59f7d3a15", + "reference": "e62eeb1fe8a8a0b2e83227a6c279c8c59f7d3a15", + "shasum": "" + }, + "require": { + "illuminate/contracts": "^9.28|^10.0|^11.0", + "php": "^8.0" + }, + "require-dev": { + "mockery/mockery": "^1.5", + "orchestra/testbench": "^7.7|^8.0", + "pestphp/pest": "^1.22", + "phpunit/phpunit": "^9.5.24", + "spatie/pest-plugin-test-time": "^1.1" + }, + "type": "library", + "autoload": { + "psr-4": { + "Spatie\\LaravelPackageTools\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Freek Van der Herten", + "email": "freek@spatie.be", + "role": "Developer" + } + ], + "description": "Tools for creating Laravel packages", + "homepage": "https://github.com/spatie/laravel-package-tools", + "keywords": [ + "laravel-package-tools", + "spatie" + ], + "support": { + "issues": "https://github.com/spatie/laravel-package-tools/issues", + "source": "https://github.com/spatie/laravel-package-tools/tree/1.16.2" + }, + "funding": [ + { + "url": "https://github.com/spatie", + "type": "github" + } + ], + "time": "2024-01-11T08:43:00+00:00" + }, + { + "name": "spatie/laravel-responsecache", + "version": "7.4.10", + "source": { + "type": "git", + "url": "https://github.com/spatie/laravel-responsecache.git", + "reference": "cf0305f73fcc49dacfadd0f2228887a92fa736ac" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/spatie/laravel-responsecache/zipball/cf0305f73fcc49dacfadd0f2228887a92fa736ac", + "reference": "cf0305f73fcc49dacfadd0f2228887a92fa736ac", + "shasum": "" + }, + "require": { + "illuminate/cache": "^8.71|^9.0|^10.0", + "illuminate/console": "^8.71|^9.0|^10.0", + "illuminate/container": "^8.71|^9.0|^10.0", + "illuminate/http": "^8.71|^9.0|^10.0", + "illuminate/support": "^8.71|^9.0|^10.0", + "nesbot/carbon": "^2.63", + "php": "^8.0", + "spatie/laravel-package-tools": "^1.9" + }, + "require-dev": { + "laravel/framework": "^9.0|^10.0", + "mockery/mockery": "^1.4", + "orchestra/testbench": "^6.23|^7.0|^8.0", + "pestphp/pest": "^1.22", + "phpunit/phpunit": "^9.4" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Spatie\\ResponseCache\\ResponseCacheServiceProvider" + ], + "aliases": { + "ResponseCache": "Spatie\\ResponseCache\\Facades\\ResponseCache" + } + } + }, + "autoload": { + "psr-4": { + "Spatie\\ResponseCache\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Freek Van der Herten", + "email": "freek@spatie.be", + "homepage": "https://spatie.be", + "role": "Developer" + } + ], + "description": "Speed up a Laravel application by caching the entire response", + "homepage": "https://github.com/spatie/laravel-responsecache", + "keywords": [ + "cache", + "laravel", + "laravel-responsecache", + "performance", + "response", + "spatie" + ], + "support": { + "source": "https://github.com/spatie/laravel-responsecache/tree/7.4.10" + }, + "funding": [ + { + "url": "https://spatie.be/open-source/support-us", + "type": "custom" + }, + { + "url": "https://github.com/spatie", + "type": "github" + } + ], + "time": "2023-10-28T18:47:12+00:00" + }, { "name": "spatie/schema-org", "version": "3.23.0",