IP Whitelist
This package is designed to work with the mpociot/teamwork package for Laravel 5.., (*1)
Installation
You can install this package with composer:, (*2)
composere require atomjuice\ipwhitelist
Add the middleware below to your $routeMiddleware
in App\Http\Kernel.php
., (*3)
protected $routeMiddleware = [
...
'ip' => \AtomJuice\IpWhitelist\Http\Middleware\IpWhitelist::class,
];
You can then add it to app API requests like below, (*4)
'api' => [
...
'ip'
],