18 lines
456 B
PHP
18 lines
456 B
PHP
|
<?php
|
||
|
|
||
|
use Illuminate\Database\Capsule\Manager as Capsule;
|
||
|
|
||
|
$capsule = new Capsule;
|
||
|
$capsule->addConnection([
|
||
|
'driver' => $_ENV['DB_DRIVER'],
|
||
|
'host' => $_ENV['DB_HOST'],
|
||
|
'database' => $_ENV['DB_NAME'],
|
||
|
'username' => $_ENV['DB_USER'],
|
||
|
'password' => $_ENV['DB_PASSWORD'],
|
||
|
'charset' => 'utf8',
|
||
|
'collation' => 'utf8_unicode_ci',
|
||
|
'prefix' => '',
|
||
|
]);
|
||
|
// Setup the Eloquent ORM…
|
||
|
$capsule->setAsGlobal();
|
||
|
$capsule->bootEloquent();
|