nqxcode / laravel-local-ip-detector
此包的最新版本(v1.0.2)没有可用的许可信息。
使用HTML5 WebRTC进行本地IP检测
v1.0.2
2018-04-15 13:33 UTC
Requires
- php: >=5.4.0
- illuminate/support: 4.2.*
This package is auto-updated.
Last update: 2024-09-22 00:01:31 UTC
README
!!! 默认设置下,在现代浏览器版本中无法正常工作 !!!
Laravel 4.2 包提供通过HTML5 WebRTC检测客户端本地IP(并存储到 cookie)的功能。
安装
在composer.json中添加此包,并运行composer update
{ "require": { "nqxcode/laravel-local-ip-detector": "1.*" } }
更新composer后,将ServiceProvider添加到app/config/app.php
中的providers数组中
'providers' => [ 'Nqxcode\LaravelLocalIpDetector\ServiceProvider', ],
配置
通过运行以下命令将配置文件发布到您的项目中:
php artisan config:publish nqxcode/laravel-local-ip-detector
许可
该包根据MIT许可授权。