Download the PHP package chenpkg/laravel-idempotent without Composer
On this page you can find all versions of the php package chenpkg/laravel-idempotent. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download chenpkg/laravel-idempotent
More information about chenpkg/laravel-idempotent
Files in chenpkg/laravel-idempotent
Download chenpkg/laravel-idempotent
More information about chenpkg/laravel-idempotent
Files in chenpkg/laravel-idempotent
Vendor chenpkg
Package laravel-idempotent
Short Description laravel idempotent middleware
License MIT
Package laravel-idempotent
Short Description laravel idempotent middleware
License MIT
Please rate this library. Is it a good library?
Informations about the package laravel-idempotent
Idempotent
laravel 幂等中间件,防止客户端同一时间请求多次。
建议将 laravel 默认缓存设置为 redis,将得到更好的性能。
Requirement
- PHP >= 7.0 | PHP >= 8.0
- laravel >= 6
Installation
Usage
发布配置文件
中间件为 Chenpkg\Idempotent\IdempotentMiddleware
,别名 idempotent
注:请不要直接加在
App\Http\Kernel
的middleware
里面,由于中间件执行顺序问题,可能导致该组件获取不到当前用户身份标识符 ID
或者你可以将它加入到指定路由中间件组中
重复的请求将会抛出 Chenpkg\Idempotent\Exceptions\RepeatRequestException
Http
异常
Configure
License
MIT
All versions of laravel-idempotent with dependencies
PHP Build Version
Package Version
The package chenpkg/laravel-idempotent contains the following files
Loading the files please wait ....