Skip to content

Commit

Permalink
Update SettingsManager.php
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanWyse authored Jul 26, 2021
1 parent f5c4e86 commit 23b8ea4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SettingsManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function createDatabaseDriver()
{
$config = $this->config('drivers.database');

return new DatabaseRepository($this->app['db'], $config['table']);
return new DatabaseRepository(\DB::connection(), $config['table']);
}

/**
Expand All @@ -51,6 +51,6 @@ public function createDatabaseDriver()
*/
public function config($key, $default = null)
{
return $this->app['config']->get('settings.'.$key, $default);
return config('settings.'.$key, $default);
}
}

0 comments on commit 23b8ea4

Please sign in to comment.