messages implemented

This commit is contained in:
2026-02-26 21:12:32 +01:00
parent d0aefc5ddc
commit 15b7b77d20
168 changed files with 14728 additions and 6786 deletions

View File

@@ -0,0 +1,17 @@
<?php
require __DIR__ . '/../vendor/autoload.php';
$app = require __DIR__ . '/../bootstrap/app.php';
$app->make(\Illuminate\Contracts\Console\Kernel::class)->bootstrap();
$cols = \Illuminate\Support\Facades\DB::connection('legacy')->select('DESCRIBE users');
foreach ($cols as $c) {
echo $c->Field . ' | ' . $c->Type . ' | null=' . $c->Null . ' | default=' . ($c->Default ?? 'NULL') . PHP_EOL;
}
echo PHP_EOL . '-- Sample row --' . PHP_EOL;
$row = \Illuminate\Support\Facades\DB::connection('legacy')->table('users')->where('user_id', 53000)->first();
if ($row) {
foreach ((array)$row as $k => $v) {
echo $k . ': ' . $v . PHP_EOL;
}
}