kylemass/sociallogin 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

kylemass/sociallogin

Composer 安装命令:

composer require kylemass/sociallogin

包简介

Simple plugin to allow for login and registration from various social platforms

README 文档

README

This is a basic plugin to handle your social login and registration requests.

To install, download through composer

$ composer require kylemass/sociallogin

Or by adding:

{
	"require": {
		"kylemass/sociallogin": "~1.0"
	}
}

Once you have added the package, add the Service Provider to your list of service providers:

'providers' => [
    ...
    KyleMass\SocialLogin\SocialLoginServiceProvider::class,
],

Next you have to publish the package:

$ php artisan vendor:publish --provider="KyleMass\SocialLogin\SocialLoginServiceProvider"

The package comes with a migration file, so last but not least run:

$ php artisan migrate

That is it, your routes will automatically be generated which look like:

Route::get('auth/social/{provider}', 'KyleMass\SocialLogin\SocialLoginController@redirectToProvider');
Route::get('auth/{provider}/callback', 'KyleMass\SocialLogin\SocialLoginController@handleProviderCallback');

All you will have to do is create the links the social providers you wish to use for example:

<a href="{{ url('auth/social/github') }}">Login with Github</a>

And for your callback URL will be http://www.yourdomain.tld/auth/github/callback

This package requires laravel/socailite so you can find the documentation on how to set that up at the Laravel website.

统计信息

  • 总下载量: 16
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-01-02

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固