Game-Jaming/bootstrap.php

9 lines
275 B
PHP
Raw Normal View History

2021-03-03 08:49:59 +00:00
<?php
2021-03-25 13:24:34 +00:00
require_once "vendor/autoload.php";
2021-03-03 08:49:59 +00:00
use Illuminate\Database\Capsule\Manager as Capsule;
$capsule = new Capsule;
2021-03-25 13:24:34 +00:00
$con = json_decode(file_get_contents('config/database.json', true), true);
$capsule->addConnection($con);
2021-03-03 08:49:59 +00:00
$capsule->setAsGlobal();
2021-03-22 14:29:18 +00:00
$capsule->bootEloquent();