mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-12-04 20:48:59 +05:30
19 lines
364 B
PHP
19 lines
364 B
PHP
<?php
|
|
|
|
namespace RelationalExample\Config;
|
|
|
|
use Illuminate\Database\Capsule\Manager as Capsule;
|
|
|
|
include __DIR__.'/../vendor/autoload.php';
|
|
|
|
$capsule = new Capsule();
|
|
|
|
$capsule->addConnection([
|
|
'driver' => 'sqlite',
|
|
'database' => __DIR__.'/oauth2.sqlite3',
|
|
'charset' => 'utf8',
|
|
'collation' => 'utf8_unicode_ci',
|
|
]);
|
|
|
|
$capsule->setAsGlobal();
|