This commit is contained in:
2025-07-26 13:25:50 +05:00
commit 69dd14e06c
311 changed files with 50685 additions and 0 deletions

18
app/Helpers/helpers.php Normal file
View File

@@ -0,0 +1,18 @@
<?php
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Log;
/**
* Log
*/
function logDB(): void
{
if (! app()->isLocal()) {
return;
}
DB::listen(function ($query) {
Log::info($query->sql, $query->bindings, $query->time);
});
}