app->singleton(FirebaseAuth::class, function ($app) { $factory = (new Factory) ->withServiceAccount(storage_path('app/smartcab-8bb42-firebase-adminsdk-fbsvc-de33a8e45b.json')) ->withDatabaseUri(env('FIREBASE_DATABASE_URL')); return $factory->createAuth(); }); $this->app->singleton(Database::class, function ($app) { $factory = (new Factory) ->withServiceAccount(storage_path('app/smartcab-8bb42-firebase-adminsdk-fbsvc-de33a8e45b.json')) ->withDatabaseUri(env('FIREBASE_DATABASE_URL')); return $factory->createDatabase(); }); } public function boot() { // } }