定制 gsdw/social 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

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

https://github.com/laravel/socialite

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-05-06

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固