jhonoryza/laravel-ipwhitelist

laravel package with ip whitelist feature

Installs: 3

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/jhonoryza/laravel-ipwhitelist

1.0.2 2025-12-09 11:17 UTC

This package is auto-updated.

Last update: 2025-12-09 11:17:56 UTC


README

This package is intended for ip whitelist feature in laravel project. It will help you to check if the user is coming from the whitelisted ip or not. by configuring the whitelist ip in the config file.

Requirement

  • PHP >= 8.0
  • Laravel >= 8.0

Getting Started

Package installation

composer require jhonoryza/laravel-ipwhitelist

adjust .env file like this

IP_WHITELIST=127.0.0.1,192.168.1.1

register the middleware ipwhitelist in route or controller

Security

If you've found a bug regarding security, please mail jardik.oryza@gmail.com instead of using the issue tracker.

License

The MIT License (MIT). Please see License File for more information.