webazin/country-middleware
Composer 安装命令:
composer require webazin/country-middleware
包简介
country ban and country required captcha in route access
README 文档
README
Install
1-composer require webazin/country-middleware
2-Insert in laravel < 5
config/app.php
\Webazin\CountryMiddleware\CountryMiddlewareServiceProvider::class
3-php artisan vendor:publish
4-Webazin\CountryMiddleware\CountryMiddlewareServiceProvider
Use
In your route add
->middleware('countryCheck')
Ban country
config/CountryMiddleware.php
Add country iso_code
For example
countries_ban' => ['US']
All iso code to below link
[https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes ](https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes)
webazin.net
统计信息
- 总下载量: 21
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-04-18