The
dd
function dumps the given variables and ends execution of the script:<?php dd($value);
dd($value1, $value2, $value3, ...);
<?php function dd()
{
dd($this->lastState->getHtml());
}
function tap($callback)
<?php {
$this->dump(...$args);
dd();
}
<?php public function dd()
{
dd($this->toSql(), $this->getBindings());
}
<?php public function ddRawSql()
{
dd($this->toRawSql());
}
<?php ->map(fn ($average) => number_format($average, 3).'ms')
->when($benchmarkables instanceof Closure, fn ($c) => $c->first(), fn ($c) => $c->all());
dd($result);
}
}
<?php {
$this->dump(...$args);
dd();
}
<?php public function dd(mixed ...$arguments): void
{
if (function_exists('dd')) {
dd($this->value, ...$arguments);
}
var_dump($this->value);
<?php public function __invoke(Request $request, $collection, $entry)
{
if (! $target = $entry->revision($request->revision)) {
dd('no such revision', $request->revision);
}
<?php public function __invoke(Request $request, $collection, $entry)
{
if (! $target = $entry->revision($request->revision)) {
dd('no such revision', $request->revision);
}
<?php public function dd($value)
{
function_exists('ddd') ? ddd($value) : dd($value);
}
<?php {
$value = $this->context->all();
function_exists('ddd') ? ddd($value) : dd($value);
}
}