rdx / laravel-querylog
Installs: 1 416
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- wikimedia/ip-set: ^4.0 || ^3.1
README
Not really a log, bad name, but an inline HTML display.
Enable
- Install with composer.
- Add
QUERYLOG_IPS
to your.env
, see examples below. - Print
querylog_html()
output in your HTML somewhere.
Output:
QUERYLOG_IPS
examples
QUERYLOG_IPS=127.0.0.1
QUERYLOG_IPS=::1
QUERYLOG_IPS=192.168.0.0/16,12.23.34.45
QUERYLOG_IPS=12.23.34.45,1c10:7181:24d9::/48
Comma separated. No space! Optional CIDR range format: addr/range
. IPv4 and IPv6 are supported.
If you want every IP address to show debug:
QUERYLOG_IPS=0.0.0.1/0,::1/0