33 lines
497 B
PHP
33 lines
497 B
PHP
![]() |
<?php
|
||
|
|
||
|
namespace Illuminate\Support\Traits;
|
||
|
|
||
|
trait Dumpable
|
||
|
{
|
||
|
/**
|
||
|
* Dump the given arguments and terminate execution.
|
||
|
*
|
||
|
* @param mixed ...$args
|
||
|
* @return never
|
||
|
*/
|
||
|
public function dd(...$args)
|
||
|
{
|
||
|
$this->dump(...$args);
|
||
|
|
||
|
dd();
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Dump the given arguments.
|
||
|
*
|
||
|
* @param mixed ...$args
|
||
|
* @return $this
|
||
|
*/
|
||
|
public function dump(...$args)
|
||
|
{
|
||
|
dump($this, ...$args);
|
||
|
|
||
|
return $this;
|
||
|
}
|
||
|
}
|