diff --git a/app/Services/RavenDBManager.php b/app/Services/RavenDBManager.php index 9f8ccc2..1cd4dbd 100644 --- a/app/Services/RavenDBManager.php +++ b/app/Services/RavenDBManager.php @@ -16,13 +16,13 @@ class RavenDBManager public function getStore(?string $database = null): DocumentStore { - $database = $database ?? $this->defaultDatabase(); + $database = $database ?? $this->defaultDatabaseName(); if (array_key_exists($database, $this->stores)) { return $this->stores[$database]; } - $store = new DocumentStore([$this->defaultUrl()], $database); + $store = new DocumentStore([$this->databaseUrl()], $database); $store->initialize(); $this->stores[$database] = $store; @@ -30,12 +30,12 @@ public function getStore(?string $database = null): DocumentStore return $store; } - private function defaultUrl(): string + private function databaseUrl(): string { return env('RAVENDB_URL'); } - private function defaultDatabase(): string + private function defaultDatabaseName(): string { return env('RAVENDB_DATABASE_NAME'); } diff --git a/config/app.php b/config/app.php index ec1866a..dd9219b 100644 --- a/config/app.php +++ b/config/app.php @@ -15,7 +15,7 @@ | */ - 'name' => env('APP_NAME', 'Laravel'), + 'name' => env('APP_NAME', 'RavenDB Laravel Demo Application'), /* |--------------------------------------------------------------------------