socialogin/google
最新稳定版本:1.0.0
Composer 安装命令:
composer require socialogin/google
包简介
Package of google login
README 文档
README
Installation
Require this package, with Composer, in the root directory of your project.
$ composer require socialogin/google
Add the service provider to config/app.php in the providers array.
Socailogin\Google\Providers\SocialLoginServiceProvider::class,
Configuration
Laravel requires connection configuration. To get started, you'll need to publish all vendor assets:
$ php artisan vendor:publish --provider="Socailogin\Google\Providers\SocialLoginServiceProvider"
You are free to change the configuration file as needed, but the default expected values are below in .env file:
GOOGLE_CLIENT_ID="your cllient key" GOOGLE_CLIENT_SECRET="your client secret id" REDIRECT_URL="Your redirct URL"
Add google_id column in Users table and google login button on login page and assign the route as "route('auth.google')".
统计信息
- 总下载量: 5
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2023-04-08