21 lines
439 B
PHP
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();
|