This commit is contained in:
2020-12-17 14:09:14 +08:00
parent 672a719dbd
commit 36c1d0502a
151 changed files with 1937 additions and 2848 deletions
+3 -3
View File
@@ -35,7 +35,7 @@ class DatabasesProviders extends Providers
* @throws ConfigException
* @throws Exception
*/
public function get($name)
public function get($name): Connection
{
$application = Snowflake::app();
if ($application->has('databases.' . $name)) {
@@ -87,10 +87,10 @@ class DatabasesProviders extends Providers
/**
* @param $name
* @return array|mixed|null
* @return mixed
* @throws ConfigException
*/
public function getConfig($name)
public function getConfig($name): mixed
{
return Config::get('databases.' . $name, true);
}