if (! function_exists('dd')) { /** * Dump the passed variables and end the script. * * @param mixed $args * @return void */ function dd(...$args) { header('Access-Control-Allow-Origin: *'); header('Access-Control-Allow-Methods: *'); header('Access-Control-Allow-Headers: *'); http_response_code(500); foreach ($args as $x) { (new Illuminate\Support\Debug\Dumper)->dump($x); } die(1); } }