fix bug
This commit is contained in:
parent
7317d38c09
commit
2f55fd228a
|
@ -3,7 +3,6 @@
|
||||||
/public/build
|
/public/build
|
||||||
/public/hot
|
/public/hot
|
||||||
/public/storage
|
/public/storage
|
||||||
/storage/*.key
|
|
||||||
/vendor
|
/vendor
|
||||||
.env
|
.env
|
||||||
.env.backup
|
.env.backup
|
||||||
|
|
|
@ -14,8 +14,6 @@ public function register()
|
||||||
$this->app->singleton(FirebaseAuth::class, function ($app) {
|
$this->app->singleton(FirebaseAuth::class, function ($app) {
|
||||||
$factory = (new Factory)
|
$factory = (new Factory)
|
||||||
->withServiceAccount(json_decode(env('FIREBASE_CREDENTIALS'), true))
|
->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'));
|
->withDatabaseUri(env('FIREBASE_DATABASE_URL'));
|
||||||
|
|
||||||
return $factory->createAuth();
|
return $factory->createAuth();
|
||||||
|
@ -24,10 +22,7 @@ public function register()
|
||||||
$this->app->singleton(Database::class, function ($app) {
|
$this->app->singleton(Database::class, function ($app) {
|
||||||
$factory = (new Factory)
|
$factory = (new Factory)
|
||||||
->withServiceAccount(config('firebase.credentials'))
|
->withServiceAccount(config('firebase.credentials'))
|
||||||
->withDatabaseUri(config('firebase.database_url'))
|
->withDatabaseUri(config('firebase.database_url'));
|
||||||
->withServiceAccount(base_path('storage/app/firebase/smartcab-8bb42-firebase-adminsdk-fbsvc-de33a8e45b.json'))
|
|
||||||
->withDatabaseUri(env('FIREBASE_DATABASE_URL'));
|
|
||||||
|
|
||||||
|
|
||||||
return $factory->createDatabase();
|
return $factory->createDatabase();
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue