laraturka/nocache

No Cache Middleware for Laravel
48 2
Install
composer require laraturka/nocache
Latest Version:v1.0.3
PHP:>=7.0.0
License:MIT
Last Updated:Oct 4, 2017
Links: GitHub  ·  Packagist
Maintainer: laraturka

nocache

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 }