You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -116,15 +114,16 @@ done for you with the Laravel Service Provider. Use Dependency Injection, the Fa
116
114
117
115
Multiple projects can be configured in [config/firebase.php](config/firebase.php) by adding another section to the projects array.
118
116
119
-
When accessing components, the facade uses the default project. One can also explicitly use a project:
117
+
When accessing components, the facade uses the default project. You can also explicitly use a project:
120
118
121
119
```php
122
-
Firebase::auth() // returns an intance of \Kreait\Firebase\Auth with the configuration found for the default project
123
-
// or
124
-
// 'app' is configured as the default project by default, this would be equivalent to Firebase::firestore() when that is the case
125
-
Firebase::project('app')->firestore() // returns an intance of \Kreait\Firebase\Firestore with the configuration found for the 'app' project
126
-
// or
127
-
Firebase::project('secondary-app')->database() // returns an instance of \Kreait\Firebase\Database with the configuration found for the 'secondary-app' project
120
+
use Kreait\Laravel\Firebase\Facades\Firebase;
121
+
122
+
// Return an instance of the Auth component for the default Firebase project
123
+
$defaultAuth = Firebase::auth();
124
+
// Return an instance of the Auth component for a specific Firebase project
0 commit comments