nckg/laravel-firewall
HTML minifier
Introduction
Very simple package to allow access to your Laravel application by IP.
Installation
You can install the package via composer:
composer require nckg/laravel-firewall
Add the FirewallServiceProvider to you config/app.php file.
// config/app.php
'providers' => [
...
Nckg\Firewall\FirewallServiceProvider::class,
...
]
Publish the configuration file to your configuration path:
php artisan vendor:publish --provider="Nckg\Firewall\FirewallServiceProvider"
If you are using Laravel you can add the middleware to your middleware providers
// app/Http/Kernel.php
/**
* The application's global HTTP middleware stack.
*
* @var array
*/
protected $middleware = [
...
\Nckg\Firewall\Middleware\IpAccess::class,
];
Testing
composer test
License
The MIT License (MIT).
Related Packages
doctrine/dbal
Powerful PHP database abstraction layer (DBAL) with many features for database s...
637,827,751
9,703
laravel/serializable-closure
Laravel Serializable Closure provides an easy and secure way to serialize closur...
413,412,504
609
nunomaduro/collision
Cli error handling for console/command-line PHP applications.
394,964,158
4,660
Version History
| Version | Released | PHP | License |
|---|---|---|---|
| 0.2.0 | ^7.4| | MIT | |
| 0.1.5 | ^7.0 | MIT | |
| 0.1.4 | ^7.0 | MIT | |
| 0.1.3 | ^7.0 | MIT | |
| 0.1.2 | ^7.0 | MIT |