bootstrap/app.php
+require_once __DIR__.'/../app/helpers.php';
require_once __DIR__.'/../vendor/autoload.php';
app/helpers.php
<?php
use Illuminate\Support\Debug\Dumper;
if (!function_exists('dd')) {
/**
* Dump the passed variables and end the script.
*
* @param mixed
*/
function dd()
{
list($callee) = debug_backtrace();
printf('<legend>File: %s : %s</legend>', $callee['file'], $callee['line']);
array_map(function ($x) {
(new Dumper())->dump($x);
}, func_get_args());
die(1);
}
}