17 lines
542 B
PHP
17 lines
542 B
PHP
<?php
|
|
|
|
require __DIR__.'/../vendor/autoload.php';
|
|
$app = require_once __DIR__.'/../bootstrap/app.php';
|
|
$kernel = $app->make(Illuminate\Contracts\Console\Kernel::class);
|
|
$kernel->bootstrap();
|
|
|
|
use Illuminate\Support\Facades\DB;
|
|
|
|
$bioRecords = DB::table('biometric_attendances')
|
|
->whereBetween('punch_time', ['2026-05-01 00:00:00', '2026-05-10 23:59:59'])
|
|
->orderBy('punch_time', 'asc')
|
|
->get();
|
|
|
|
echo "Total biometric logs in this date range: " . count($bioRecords) . "\n";
|
|
echo json_encode($bioRecords, JSON_PRETTY_PRINT) . "\n";
|