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
Requires
- php: ^8.0
- illuminate/support: ^8.0|^9.0|^10.0|^11.0|^12.0
Requires (Dev)
- laravel/pint: ^1.24
- orchestra/testbench: ^10.0
- pestphp/pest: ^4.1
- pestphp/pest-plugin-drift: ^4.0
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.