commands and logs to the database
This commit is contained in:
@@ -33,8 +33,11 @@ class LucentServiceProvider extends ServiceProvider
|
||||
return new ImageManager(['driver' => 'imagick']);
|
||||
});
|
||||
|
||||
|
||||
|
||||
$this->app->bind(DatabaseGraph::class, function () {
|
||||
return match (config("lucent.database")) {
|
||||
$dbConnection = config("lucent.database");
|
||||
return match (config("database.connections.$dbConnection.driver")) {
|
||||
"sqlite" => new SqliteDatabaseGraph(),
|
||||
"pgsql" => new PgsqlDatabaseGraph(),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user