config
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
return [
|
||||
"schemas_path" => env("LUCENT_SCHEMAS_PATH", "app/Lucent"),
|
||||
"database" => env('LUCENT_DB_CONNECTION', env('DB_CONNECTION',"sqlite")),
|
||||
"name" => env("LUCENT_NAME", "Lucent"),
|
||||
"url" => env("LUCENT_URL", "http://localhost:8000/"),
|
||||
"previewTarget" => env("LUCENT_PREVIEW_TARGET", "previewTarget"),
|
||||
|
||||
@@ -31,7 +31,7 @@ class LucentServiceProvider extends ServiceProvider
|
||||
});
|
||||
|
||||
$this->app->bind(DatabaseGraph::class, function () {
|
||||
return match (config("database.lucent")) {
|
||||
return match (config("lucent.database")) {
|
||||
"sqlite" => new SqliteDatabaseGraph(),
|
||||
"pgsql" => new PgsqlDatabaseGraph(),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user