atomjuice/ipwhitelist

Installs: 47

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 3

Forks: 1

Type:package

pkg:composer/atomjuice/ipwhitelist

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

This package is not auto-updated.

Last update: 2025-09-28 08:43:35 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'
],