gsdw/social
Composer 安装命令:
composer require gsdw/social
包简介
Laravel social connect
README 文档
README
Introduction
install
add code to composer.json
"require": {
"laravel/socialite": "^2.0",
"gsdw/social": "0.1.*"
}
Configuration
register the Provider in your config/app.php configuration file:
'providers' => [
// Other service providers...
Laravel\Socialite\SocialiteServiceProvider::class,
Gsdw\Social\Providers\SocialServiceProvider::class,
],
Also, add the Socialite facade to the aliases array in your app configuration file:
'Socialite' => Laravel\Socialite\Facades\Socialite::class,
Add information app project in config/services.php configuration file
'google' => [
'client_id' => 'your-github-app-id',
'client_secret' => 'your-github-app-secret',
'redirect' => url('social/handle/google'),
],
Add link Login
Default link to login social is /social/redirect/google.
Can use html output link: \Gsdw\Social\Helpers\Output::googleButton()
Notification
Add code in layout to show notification
@if (count($errors) > 0) <ul> @foreach ($errors->all() as $error) <li>{{ $error }}</li> @endforeach </ul> @endif
Reference
统计信息
- 总下载量: 11
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-05-06