<?php

require __DIR__.'/vendor/autoload.php';
$app = require_once __DIR__.'/bootstrap/app.php';
$app->make('Illuminate\Contracts\Console\Kernel')->bootstrap();

use Illuminate\Support\Facades\DB;

echo "User Categories:\n";
echo "================\n\n";

$categories = DB::table('user_categories')->get(['id', 'name']);

foreach ($categories as $cat) {
    echo "ID: {$cat->id} - Name: {$cat->name}\n";
}
