1. Go to this page and download the library: Download mohamed-hathout/debugger library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
mohamed-hathout / debugger example snippets
// Debug any variable
debug($variable);
// Debug an Eloquent query
debug_query($query);
return [
'truncate_tables' => false, // Whether to use TRUNCATE instead of DELETE when clearing data
'sort' => 'desc', // Sort order for debug entries
'route_name' => 'debugger', // URL path for the debug viewer
'is_enabled' => true, // Enable/disable debugging
'storage_type' => 'database', // 'database' or 'cache'
'cache' => [
'key_prefix' => 'debugger:',
'counter_key' => 'debugger:counter',
'index_key' => 'debugger:index',
'files_key' => 'debugger:files',
'ttl' => 3600, // Cache TTL in seconds
],
];