Skip to content

Reference sheet ​

Every helper and method, with a link to the page that explains it.

PHP ​

CallDescriptionDetails
ds($a, $b)Dump one or more valuesDump
ds($a)->die()Dump and stop executionDump and die
dsd($a)Alias for dump and dieDump and die
dsq($a)Dump without bringing the app forwardQuiet dump
->label('Name')Name the dumpLabel
->toScreen('name', $raiseIn)Send to a screen; optional delay in secondsScreens
->s('name')Alias for toScreen()Screens
->toScreenWindow('name')Send to a screen in a new windowScreens
->w('name')Alias for toScreenWindow()Screens
ds()->clear()Clear all screensClear screens
->info() / ->blue()Blue tagColor tag
->success() / ->green()Green tagColor tag
->danger() / ->red()Red tagColor tag
->warning() / ->orange()Orange tagColor tag
->dark() / ->black()Black tagColor tag
->color('red')Tag with a color by nameColor tag
ds()->time('ref'), ds()->stopTime('ref')Measure execution timeTime
ds()->table($data, 'name')Show data in a searchable tableTable
->isJson()Validate and format a JSON stringJSON
->contains('text', caseSensitive: false, wholeWord: false)Check if the dump contains a stringContains
ds()->phpinfo()Show PHP settingsPHPInfo
ds()->benchmark(...$closures)Time closures and flag the fastestBenchmark

Laravel ​

CallDescriptionDetails
ds()->routes()Show routes in a tableRoutes
ds()->model($user)Show a model's attributes and relationshipsEloquent models
str('Hello')->ds()Dump a Stringable and keep chainingMacros and Blade
collect($items)->ds()Dump a collection and keep chainingMacros and Blade
User::query()->ds()Dump an Eloquent builder's queryMacros and Blade
@ds($var)Dump from a Blade viewMacros and Blade
ds()->queriesOn('label'), ds()->queriesOff()Start and stop capturing SQL queriesQueries
ds()->markdown('# Hello')Render markdown as HTMLTable and Markdown
ds()->mailable(new TestMail())Show mail details and an HTML previewMail
ds()->httpOn('label'), ds()->httpOff()Start and stop capturing HTTP client requestsHTTP client
ds()->commandsOn('label'), ds()->commandsOff()Start and stop capturing Artisan commandsArtisan commands
ds()->scheduledCommandOn('label'), ds()->scheduledCommandOff()Start and stop capturing scheduled commandsScheduled commands and gates
ds()->gateOn('label'), ds()->gateOff()Start and stop capturing gate and policy checksScheduled commands and gates
ds()->cacheOn('label'), ds()->cacheOff()Start and stop capturing cache eventsCache
ds()->withContext('key')Show Laravel Context, optionally filtered by keyContext
ds()->startProfile('label'), ds()->stopProfile()Start and stop a profileNot documented yet
ds()->profile($callback, 'label')Profile a closure and return its resultNot documented yet
ds()->measure($name, $callback, $type, $metadata)Measure a closure inside a profileNot documented yet
ds()->flushProfile(), ds()->captureProfileForTermination()Send or finalize the current profile dataNot documented yet

Livewire and Volt ​

CallDescriptionDetails
#[Ds]Listen to a Livewire componentPin a component
booted(fn () => ds($this))Listen to a Volt componentPin a Volt component

Pest ​

CallDescriptionDetails
expect($value)->ds()Dump an expectation valueExpectations
$response->ds()Dump a test responseTest responses

Created by Luan Freitas