gbrits/firebase-laravel-auth-sidecar is a Laravel package for firebase auth add-on for laravel.
It currently has 2 GitHub stars and 27 downloads on Packagist (latest version 1.1.0).
Install it with composer require gbrits/firebase-laravel-auth-sidecar.
Discover more Laravel packages by gbrits
or browse all Laravel packages to compare alternatives.
Last updated

You may install by running the composer require command in your terminal:
composer require gbrits/firebase-laravel-auth-sidecar
.envFIREBASE_API_KEY=AIzXXgibberxJf4_5rlradjabberTsMpX
FIREBASE_AUTH_DOMAIN=acme.firebaseapp.com
FIREBASE_DATABASE_URL=https://acme.firebaseio.com
FIREBASE_PROJECT_ID=acme
FIREBASE_STORAGE_BUCKET=acme.appspot.com
FIREBASE_MESSAGING_SENDER_ID=800813513371
config/app.phpGbrits\Firebase\Auth\ServiceProvider::class,
php artisan vendor:publish --provider="Gbrits\Firebase\Auth\ServiceProvider"
Http/Controllers/Auth/LoginController.phpuse Gbrits\Firebase\Auth\AuthenticatesUsers;
class LoginController extends Controller {
use RegistersUsers, AuthenticatesUsers, ValidatesRequests;
App/User.php$fillable = [
~ all your other fields ~, 'id_token', 'photo_url'
];
web.phpRoute::post('auth', 'Auth\LoginController@postAuth')->name('postAuth');
Route::get('logout', 'Auth\LoginController@logout')->name('logout');
@firebaseuiheader
@firebaseuiwidget
@firebaseuifooter
php artisan config:cache
php artisan view:cache
Specifically in that order, as the Laravel directives utilise config values. Be sure to clear the view cache with every alteration you make to the directive views (in the vendor files), otherwise your changes won't apply.

Oh go on, buy me a beer. Or a sugarfree Rockstar.