oauth2-server/examples/relational/config/db.php

19 lines
364 B
PHP
Raw Normal View History

2014-05-09 15:16:59 +05:30
<?php
namespace RelationalExample\Config;
use Illuminate\Database\Capsule\Manager as Capsule;
include __DIR__.'/../vendor/autoload.php';
2014-11-08 23:56:12 +05:30
$capsule = new Capsule();
2014-05-09 15:16:59 +05:30
$capsule->addConnection([
'driver' => 'sqlite',
'database' => __DIR__.'/oauth2.sqlite3',
'charset' => 'utf8',
2014-11-08 23:56:12 +05:30
'collation' => 'utf8_unicode_ci',
2014-05-09 15:16:59 +05:30
]);
$capsule->setAsGlobal();