Getting started
Configuration
All settings live in config/debugger.php. Publish it first if you want to change it:
php artisan vendor:publish --tag=debugger-config
Env vars
| Env var | Config key | Default |
|---|---|---|
DEBUGGER_ENABLED |
enabled |
true |
DEBUGGER_PATH |
path |
debugger |
DEBUGGER_DOMAIN |
domain |
empty |
DEBUGGER_READ_ONLY |
read_only |
empty, which means automatic |
DEBUGGER_MAIL_TO |
mail.override_recipient |
empty |
DEBUGGER_STORAGE_DISK |
storage.disk |
local |
DEBUGGER_DB_CONNECTION |
database.connection |
the app's default connection |
Path and routes
enabled: whenfalse, no debugger routes are registered at all.path: where the debugger lives. The default isdebugger, so/debugger.domain: set it if the debugger should only answer on one domain, for exampleops.yourapp.com.middleware: middleware for the debugger pages. The default is['web']. Access is checked after this middleware runs. See Access control.
'middleware' => ['web', 'auth'],
Read-only mode
read_only turns off every action and keeps the pages readable. Empty (null) means on in production and off in every other environment. See Read-only mode.
Modules
Every module can be turned off. A module that is off disappears from the header, and its API answers 404.
'modules' => [
'overview' => true,
'logs' => true,
'queue' => true,
'scheduler' => true,
'cache' => true,
'mail' => true,
'storage' => true,
'connections' => true,
'users' => false,
],
A module that is not in this list counts as on. So a new module in a later version shows up right away, even if your config was published from an older version.
Per-module settings
Logs
logs.paths: glob patterns, relative tostorage/logs. The default is['*.log', '**/*.log']. Files outsidestorage/logsare never read.logs.per_page: entries per page. The default is25.
Scheduler
scheduler.retention_days: how many days of run history to keep. The default is7.scheduler.late_after_minutes: after how many minutes withoutschedule:runthe scheduler counts as stopped. The default is3.scheduler.prune: addsdebugger:pruneto the daily schedule to delete old history. The default istrue.
Audit log
audit.retention_days: how many days of the action audit log to keep. The default is90.
mail.override_recipient: every test email goes to this address instead of the one typed in the form. Set it withDEBUGGER_MAIL_TO.
Storage
storage.disk: the disk for test uploads. The default islocal.storage.folder: the folder on that disk. The default isdebugger.storage.max_kb: the largest file size, in KB. The default is51200(50 MB). If PHP'supload_max_filesizeis smaller, the smaller one is used.
Connections
connections: the external APIs you can ping. See Connections.
Users and impersonation
users.guard: the guard to use. The default isweb. The user model comes from this guard's provider, so another table or UUID primary keys work as they are.users.model: set it if the user model differs from the guard's provider.users.columns: the columns forname,email, andlast_active.last_activedefaults tonull, which means that column is not shown.users.search: the columns searched when you type in the search box. The default is['name', 'email'].impersonation.enabled: turns Log in as on or off.impersonation.redirect: where you land after logging in as another user. The default is/.impersonation.show_bar: shows the "You're signed in as …" bar in the app while impersonating. The default istrue.
User roles and which users are listed are set in code, not config, so the config stays cacheable. See Users.
Package tables
'database' => [
'connection' => env('DEBUGGER_DB_CONNECTION'),
'tables' => [
'schedule_runs' => 'debugger_schedule_runs',
'audit_logs' => 'debugger_audit_logs',
],
],
Rename the tables before you run the migration. The migration uses the names from this config.
Publish views
Optional. The debugger-views tag copies the package's Blade views to resources/views/vendor/debugger, so you can change them:
php artisan vendor:publish --tag=debugger-views
app.blade.php: the page that loads the debugger.impersonation-bar.blade.php: the "You're signed in as …" bar during impersonation.mail/test.blade.php: the body of the test email.
The debugger's own screens ship prebuilt and can't be changed through these views.