laravel maintained by debugflow
Description
Laravel driver for DebugFlow debugging tool
Author
Last update
2026/02/03 06:16
(dev-main)
License
Downloads
0
DebugFlow Laravel Driver
Laravel driver for DebugFlow debugging tool.
Installation
composer require debugflow/laravel
Configuration
Publish the config file:
php artisan vendor:publish --tag=debugflow-config
Add to your .env:
DEBUGFLOW_ENABLED=true
DEBUGFLOW_HOST=localhost
DEBUGFLOW_PORT=23518
DEBUGFLOW_QUERIES=true
DEBUGFLOW_EXCEPTIONS=false
Usage
Using the Facade
use DebugFlow\Facades\DebugFlow;
DebugFlow::log('Hello from Laravel!');
DebugFlow::dump($user);
DebugFlow::query('SELECT * FROM users', []);
DebugFlow::exception($e);
Using Helper Functions
df('Quick debug');
df($user)->green()->label('User Data');
ray($data)->purple()->tag('api');
Chainable Methods
df($user)
->green()
->label('User Object')
->large()
->tag('user', 'important');
Measure Performance
$result = df()->measure('api-call', function() {
return Http::get('https://api.example.com');
});
Auto-Capturing
Queries are automatically captured when DEBUGFLOW_QUERIES=true:
User::where('active', true)->get();
Available Methods
log($content)- Log messagedump($content)- Dump variablequery($sql, $bindings, $time)- Log queryexception($exception)- Log exceptionmeasure($name, $callback)- Measure performancehttp($request, $response)- Log HTTPevent($name, $payload)- Log event
Colors
red()orange()yellow()green()blue()purple()gray()pink()
Sizes
large()small()
Requirements
- PHP 8.1+
- Laravel 9.0+