nqxcode / laravel-local-ip-detector
Local IP detection with HTML5 WebRTC
Installs: 11
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Language:JavaScript
Requires
- php: >=5.4.0
- illuminate/support: 4.2.*
This package is auto-updated.
Last update: 2024-12-22 00:29:30 UTC
README
!!! NOT working on modern version of browsers with default settings !!!
Laravel 4.2 package provides fuctionality for detection of client Local IP (via HTML5 WebRTC) and storing of this address to the cookie.
Installation
Require this package in your composer.json and run composer update:
{ "require": { "nqxcode/laravel-local-ip-detector": "1.*" } }
After updating composer, add the ServiceProvider to the providers array in app/config/app.php
'providers' => [ 'Nqxcode\LaravelLocalIpDetector\ServiceProvider', ],
Configuration
Publish the config file into your project by running:
php artisan config:publish nqxcode/laravel-local-ip-detector
License
Package licenced under the MIT license.