laraturka / nocache
No Cache Middleware for Laravel
Installs: 48
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/laraturka/nocache
Requires
- php: >=7.0.0
- illuminate/support: 5.5.*
Requires (Dev)
- mockery/mockery: ~0.9.4
- phpunit/phpunit: ~5.4
This package is not auto-updated.
Last update: 2025-09-24 03:26:49 UTC
README
No Cache Header Middleware for Laravel 5
You can use it for nocache requirement for laravel routes or controllers.
First, open your app/http/kernel.php and add 'nocache' => \Laraturka\Nocache\NoCacheMiddleware::class
And then use it your route.php (or route/web.php)
Route::group(['prefix'=>'admin', 'middleware' => ['nocache']], function() { //your code }
Or use with multiple middleware
Route::group(['prefix'=>'admin', 'middleware' => ['auth','acl','nocache']], function() { //your code }