Download the PHP package dpodsiadlo/ldt without Composer
On this page you can find all versions of the php package dpodsiadlo/ldt. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download dpodsiadlo/ldt
More information about dpodsiadlo/ldt
Files in dpodsiadlo/ldt
Informations about the package ldt
LDT - Debug Tools for Laravel
A package that extends Monolog and throws debug data to an external debugger.
Installation
Via Composer
Configuration
Once installed, register Laravel service provider, in your config/app.php
:
Also register a middleware for logging requests and responses, in your app/Http/Kernel.php
:
You might also want to change the default (1800) port for external debugger (in .env
):
Basic Usage
Use default Laravel Log Facade that provides access to the Monolog Writter.
Custom requests
Here is an example how to log a separate custom request with response, it might be helpful for debugging third party APIs:
Custom storage
Also it's possible to store the custom log to a separate log file:
Log file name will be generated automatically based on $storage
parameter and Laravel app.log
config. By default log will be generated in single
mode.
Remote debugging
You might also want to debug a remote instance of your project. To do that please use SSH client with port forwarding enabled:
External Debugger
LDT is compatible with LDT Console - Free Chrome App.
License
The MIT License (MIT). Please see License File for more information.
All versions of ldt with dependencies
illuminate/http Version >=5.2
illuminate/support Version >=5.2
illuminate/database Version >=5.2
monolog/monolog Version >=1.19
symfony/http-foundation Version >=3.0