<?php
use App\Models\Page;

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

$pages = Page::where('is_published', true)->get(['title', 'slug']);
foreach ($pages as $page) {
    echo "{$page->title}: {$page->slug}\n";
}
