From 2f55fd228ac8a0ba5cb763a1431ed6e438381388 Mon Sep 17 00:00:00 2001 From: Vckynando12 Date: Sat, 15 Feb 2025 01:49:43 +0700 Subject: [PATCH] fix bug --- .gitignore | 1 - app/Providers/FirebaseServiceProvider.php | 7 +------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index 7fe978f..2658999 100644 --- a/.gitignore +++ b/.gitignore @@ -3,7 +3,6 @@ /public/build /public/hot /public/storage -/storage/*.key /vendor .env .env.backup diff --git a/app/Providers/FirebaseServiceProvider.php b/app/Providers/FirebaseServiceProvider.php index bbeb697..acea1ae 100644 --- a/app/Providers/FirebaseServiceProvider.php +++ b/app/Providers/FirebaseServiceProvider.php @@ -14,8 +14,6 @@ public function register() $this->app->singleton(FirebaseAuth::class, function ($app) { $factory = (new Factory) ->withServiceAccount(json_decode(env('FIREBASE_CREDENTIALS'), true)) - ->withDatabaseUri(env('FIREBASE_DATABASE_URL')) - ->withServiceAccount(base_path('storage/app/firebase/smartcab-8bb42-firebase-adminsdk-fbsvc-de33a8e45b.json')) ->withDatabaseUri(env('FIREBASE_DATABASE_URL')); return $factory->createAuth(); @@ -24,10 +22,7 @@ public function register() $this->app->singleton(Database::class, function ($app) { $factory = (new Factory) ->withServiceAccount(config('firebase.credentials')) - ->withDatabaseUri(config('firebase.database_url')) - ->withServiceAccount(base_path('storage/app/firebase/smartcab-8bb42-firebase-adminsdk-fbsvc-de33a8e45b.json')) - ->withDatabaseUri(env('FIREBASE_DATABASE_URL')); - + ->withDatabaseUri(config('firebase.database_url')); return $factory->createDatabase(); });