mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-11-02 00:43:11 +05:30
19 lines
361 B
PHP
19 lines
361 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();
|