studiocreativateam/ip-blocker-laravel
Composer 安装命令:
composer require studiocreativateam/ip-blocker-laravel
包简介
IP Blocker Laravel (https://studio-creativa.pl)
README 文档
README
Block routes by IP
Requirements
Laravel 7.x and 8.x
Installation
1) To install through composer, run the following command from terminal:
$ composer require studiocreativateam/ip-blocker-laravel
2) Publish the config file:
Run the following command to publish the package config file:
$ php artisan ip-blocker:publish
$ php artisan migrate
3) Enable the interception of attempts to find pages that do not exist to report to IP Blocker by making the following change to your: App/Exceptions/Handler.php
public function render($request, Throwable $e)
{
if (app()->bound('ip-blocker')) {
app('ip-blocker')->render($request, $e);
}
return parent::render($request, $e);
}
统计信息
- 总下载量: 20
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2022-02-11