commands and logs to the database

This commit is contained in:
2024-08-27 17:42:06 +03:00
parent 74d2fcc4fa
commit ae65ca47f6
16 changed files with 210 additions and 72 deletions
+4 -1
View File
@@ -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(),
};