database update

This commit is contained in:
2021-03-25 14:24:34 +01:00
parent 9e4c39c435
commit 676b3a596d
5 changed files with 114 additions and 9 deletions
+3 -8
View File
@@ -1,13 +1,8 @@
<?php
require "vendor/autoload.php";
require_once "vendor/autoload.php";
use Illuminate\Database\Capsule\Manager as Capsule;
$capsule = new Capsule;
$capsule->addConnection([
"driver" => "mysql",
"host" =>"localhost",
"database" => "TestDB",
"username" => "root",
"password" => "V#_xWL6_"
]);
$con = json_decode(file_get_contents('config/database.json', true), true);
$capsule->addConnection($con);
$capsule->setAsGlobal();
$capsule->bootEloquent();