itskp-odense/bootstrap.php

21 lines
426 B
PHP
Raw Normal View History

<?php
require "vendor/autoload.php";
use Illuminate\Database\Capsule\Manager as Capsule;
$capsule = new Capsule;
$capsule->addConnection([
"driver" => "mysql",
"host" => "127.0.0.1",
"database" => "itskp",
"username" => "root",
"password" => ""
]);
//Make this Capsule instance available globally.
$capsule->setAsGlobal();
// Setup the Eloquent ORM.
$capsule->bootEloquent();
$capsule->bootEloquent();