关键词:middleware

2
A HTTP basic auth middleware for Laravel
4
PHP CORS (Cross-origin resource sharing) middleware.
5
Configurable localization middleware for your Laravel >=5.1 application
6
Laravel middleware and helper for remembering uploaded files during form validation.
7
A middleware to censor certain words from your pages
8
[![Latest Stable Version](https://poser.pugx.org/flc/laravel-middleware-cache-response/v/stable)](https://packagist.org/packages/flc/laravel-middleware-cache-response) [![Total Downloads](https://poser.pugx.org/flc/laravel-middleware-cache-response/downloads)](https://packagist.org/packages/flc/laravel-middleware-cache-response) [![License](https://poser.pugx.org/flc/laravel-middleware-cache-response/license)](https://packagist.org/packages/flc/laravel-middleware-cache-response) ## 功能 - 支持缓存渲染后数据 - 支持指定缓存过期时间(默认10分钟) - header头输出缓存命中状态、缓存Key及过期时间 ## 安装 ```sh composer require flc/laravel-middleware-cache-response ``` ## 配置 > `\app\Http\Kernel.php`文件中`$routeMiddleware`增加: ```php <?php 'cache.response' => \Flc\Laravel\Http\Middleware\CacheResponse::class, // cache.response 命名随意,你开心就好 ``` ## 使用 ```php <?php Route::get('/', function () { return view('welcome'); })->middleware('cache.response'); Route::get('/', function () { return view('welcome'); })->middleware('cache.response:20'); // 指定缓存时间20分钟 ``` ## 附录 **缓存规则** - 当前URL全路径md5 **Headers** ``` X-Cache:Missed X-Cache-Expires:2018-03-29 15:08:29 CST X-Cache-Key:6c9b19774e2c304a42d200f314d8c80b ``` ## License MIT
10
Force https url schema middleware for Laravel 5
15
Laravel Middleware for Amazon Web Services (AWS) IP Address Range
16
Guarding form requests from spam bots.
18
A Laravel middleware for adding ETags to HTTP requests to improve response times
19
Laravel middleware for full page caching.
20
Moesif Collection/Data Ingestion Middleware for Laravel
21
Set the HSTS header to enable HTTP Strict Transport Security
22
Middleware for Laravel Framework to add the X-Request-ID header in the requests and responses.
24
Middleware for React.js server-side rendering in Laravel.
27
Allows the Use of PSR-15 Compliant Middleware in Laravel
30
Helper functions that makes it very easy to manage Laravel authorization and provides a central authorization management. Compatible with Laravel versions 5.1, 5.2, and 5.3

83
Laravel 扩展
参与改进开源知识库