You may install by running the composer require
command in your terminal:
composer require vinkas/firebase-auth-laravel
Add Service Provider to your config/app.php
file
Vinkas\Firebase\Auth\ServiceProvider::class,
Run php artisan
command to publish package files into your app
php artisan vendor:publish --provider="Vinkas\Firebase\Auth\ServiceProvider"
Add your firebase project id, api key and auth domain in .env
file
FIREBASE_PROJECT_ID=__________
FIREBASE_API_KEY=__________
FIREBASE_AUTH_DOMAIN=__________
- Override Laravel's existing authentication method.
- Add as additional authentication option. Without modifying Laravel's existing methods.