Reference sheet

LaraDumps usage reference sheet:

FunctionDescription** Package **
ds($var);Display a string, array or objectAny
ds($var1, $var2);Display multiples argumentsAny
ds($var)->die();Dump and dieAny
dsd($var);Alias for dump and dieAny
dsq($var);Send a dump without invoking (focus) the Desktop App, "Quiet dump"Any
ds($var)->label('My Label');Send dump with a custom labelAny
ds($var)->toScreen('My Screen');Adds new screen 'My screen'Any
ds($var)->s('My Screen');Alias for new screenAny
ds2($var); ... ds5($var);Send dump to pre-defined screens ('screen 2' to 'screen 5');Any
ds($var)->info();Blue color tagAny
ds($var)->success();Green color tagAny
ds($var)->danger();Red color tagAny
ds($var)->dark();Black color tagAny
ds($var)->warning();Orange color tagAny
ds()->time('Reference #1');Start clocking execution timeAny
ds()->stopTime('Reference #1');Stop clocking execution timeAny
ds()->queriesOn('My Label');Start capturing SQL queriesLaravel Package
ds()->queriesOff();Stop capturing SQL queriesLaravel Package
ds()->model(User::query()->first());Dumps the Model’s Attributes and Relationships.Laravel Package
ds()->mailable(new \App\Mail\TestMail());Displays mail details and the HTML preview for an instance of a Mailable class.Laravel Package
ds()->httpOn('My Label');Start capturing HTTP Requests.Laravel Package
ds()->httpOff();Stop capturing HTTP Requests.Laravel Package
ds()->jobsOn('My Label');Start capturing Jobs.Laravel Package
ds()->jobsOff();Stop capturing Jobs.Laravel Package
ds()->commandsOn('My Label');Start capturing calls to Artisan.Laravel Package
ds()->commandsOff();Stop capturing calls to Artisan.Laravel Package
ds()->cacheOn('My Label');Start capturing Cache.Laravel Package
ds()->cacheOff();Stop capturing Cache.Laravel Package
ds()->routes();Dumps Laravel Routes in a table formatLaravel Package
ds()->table(Collection $data, $name);Dumps data in a table formatAny
ds($var1)->diff($var2);Checks the difference between two variablesAny
ds($var)->isJson();Validates and display JSON dataAny
ds($var)->contains('Text', caseSensitive: false, wholeWord: false);Search if the content contains the given stringAny
Str::of('hello world')->upper()->ds();Displays the current string in a Stringable macroLaravel Package
collect(['hello', 'world'])->ds();Displays the current state of a Collection MacroLaravel Package
ds()->markdown('# Hi, Anand Pilania!');Displays the markdown rendered as HTML.Laravel Package
ds()->phpinfo();Dumps PHP configurationAny
ds()->coffee();☕ Grab a coffee!Any
vendor/bin/laradumps configureLaraDumps configuration wizardAny
vendor/bin/laradumps checkScan files for ds(); declarations. Useful before sending app to productionAny