定制 hedii/laravel-throttle-route 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

hedii/laravel-throttle-route

Composer 安装命令:

composer require hedii/laravel-throttle-route

包简介

A Laravel package to throttle requests based on route name

README 文档

README

Build Status

Laravel Throttle Route

A Laravel package to throttle requests based on route name.

The default Laravel request throttler acts as a global throttler based on user ID or IP. This package allows to have a request limit set by route, by using the route name to resolve the request signature.

Installation

Install with composer

composer require hedii/laravel-throttle-route

Usage

Add the middleware in your route, and use it as the default Laravel ThrottleRequests middleware.

Don't forget to set a route name.

Route::get('/first', 'FirstController@show')
    ->middleware(\Hedii\LaravelThrottleRoute\ThrottleRequests::class . ':20,1')
    ->name('first');
    
Route::get('/second', 'SecondController@show')
    ->middleware(\Hedii\LaravelThrottleRoute\ThrottleRequests::class . ':60,1')
    ->name('second');

Testing

composer test

License

laravel-throttle-route is released under the MIT Licence. See the bundled LICENSE file for details.

统计信息

  • 总下载量: 61.88k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-02-01

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固