mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-30 00:47:22 +08:00
integrate laravel framework
This commit is contained in:
@@ -61,7 +61,7 @@ class DB
|
||||
if ($this->isConnected()) {
|
||||
return null;
|
||||
}
|
||||
$config = config('database.mysql');
|
||||
$config = nexus_config('nexus.mysql');
|
||||
return $this->connect($config['host'], $config['username'], $config['password'], $config['database'], $config['port']);
|
||||
}
|
||||
|
||||
@@ -207,4 +207,4 @@ class DB
|
||||
return $result;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user