Skip to content

ilham-dev/laravel-ipwhitelist-package

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

👽 Simple IP White List

How To Install

composer require ilhamdev/ipwhitelist

How To Use

Add This Package in app/Http/Kernel.php

protected $routeMiddleware = [
    'ipwhitelist' => \ilhamdev\ipwhitelist\middleware\CheckIpMiddleware::class,
];

In Your .env add your Ip

APP_IP_WHITELIST=127.0.0.1,192.168.1.1

In Your Controller

public function __construct()
{
    $this->middleware('ipwhitelist');
}

About

simple to White list Ip In your application

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages