atomjuice/ipwhitelist

dev-master 2017-07-14 10:06 UTC

This package is not auto-updated.

Last update: 2024-10-27 03:36:51 UTC


README

This package is designed to work with the mpociot/teamwork package for Laravel 5..

Installation

You can install this package with composer:

composere require atomjuice\ipwhitelist

Add the middleware below to your $routeMiddleware in App\Http\Kernel.php.

protected $routeMiddleware = [
    ...
    'ip' => \AtomJuice\IpWhitelist\Http\Middleware\IpWhitelist::class,
];

You can then add it to app API requests like below

'api' => [
    ...
    'ip'
],