fedi-feed-router/bootstrap/database.php
2025-06-28 11:30:31 +02:00

21 lines
439 B
PHP

<?php
use Illuminate\Database\Capsule\Manager as Capsule;
// Define base_path function if not exists
if (!function_exists('base_path')) {
function base_path($path = '') {
return __DIR__ . '/../' . $path;
}
}
$capsule = new Capsule;
$capsule->addConnection([
'driver' => 'sqlite',
'database' => __DIR__ . '/../storage/database.sqlite',
'prefix' => '',
]);
$capsule->setAsGlobal();
$capsule->bootEloquent();