Skip to content

Commit

Permalink
➕ Add spatie/laravel-responsecache to the project
Browse files Browse the repository at this point in the history
  • Loading branch information
Log1x committed Jan 31, 2024
1 parent a6f38ae commit 1d9c6f7
Show file tree
Hide file tree
Showing 3 changed files with 149 additions and 2 deletions.
2 changes: 2 additions & 0 deletions app/Http/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' => [
Expand Down Expand Up @@ -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,
];
}
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
146 changes: 145 additions & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1d9c6f7

Please sign in to comment.