init commit
All checks were successful
build-api-image / build (push) Successful in 51s

This commit is contained in:
Antonio Lopes dos Santos
2026-08-04 16:52:02 -03:00
commit afec302c3e
11594 changed files with 1636728 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
<?php
if (!function_exists('dd')) {
function dd(...$vars)
{
header('Access-Control-Allow-Origin: *');
header('Access-Control-Allow-Methods: *');
header('Access-Control-Allow-Headers: *');
http_response_code(500);
foreach ($vars as $v) {
\Symfony\Component\VarDumper\VarDumper::dump($v);
}
exit(1);
}
}
if (!function_exists('getSql')) {
function getSql($query, $withBindings = true)
{
if ($withBindings) {
return vsprintf(
str_replace('?', '%s', $query->toSql()),
collect($query->getBindings())->map(function ($binding) {
return is_numeric($binding) ? $binding : "'{$binding}'";
})->toArray()
);
}
return $query->toSql();
}
}