kkcodes/laravel-firebase-auth
Composer 安装命令:
composer require kkcodes/laravel-firebase-auth
包简介
Firebase Authenticator baked for Laravel.
README 文档
README
Description
Firebase Authentication package Baked for Laravel and currently supports Facebook and Google Login. Other methods will be added shortly.
Dependency
Installation
Via Composer Require
You may install by running the composer require command in your terminal:
composer require kkcodes/laravel-firebase-auth
Hope that the default Laravel Auth is already setup. If not, then do setup first.
Skip the below mentioned step for Laravel 5.5 or greater
Add Service Provider to your config/app.php file
Kkcodes\FirebaseAuth\FirebaseAuthServiceProvider::class
Run php artisan command to publish package files into your app
php artisan vendor:publish --provider="Kkcodes\FirebaseAuth\FirebaseAuthServiceProvider"
Now Let's migrate the required tables
php artisan migrate
composer dump-autoload
php artisan db:seed --class=FirebaseSigninSourceTableSeeder
From Firebase Console, at the top left corner, there is a Web Setup Button. Click on that and copy and paste the value for respective key in .env file
FIREBASE_AUTH_API_KEY=
FIREBASE_AUTH_DOMAIN=
FIREBASE_DB_URL=
FIREBASE_PROJET_ID=
FIREBASE_STORAGE_BUCKET=
FIREBASE_SENDER_ID=
This package by default uses Laravel app.blade.php, hence do add this, @yield('head') before the closing head tag
Run it, assuiming on localhost:8000/auth/login
auth/login
统计信息
- 总下载量: 1.2k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 8
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-02-24