2017 © Pedro Peláez
 

library social

Laravel social connect

image

gsdw/social

Laravel social connect

  • Wednesday, May 11, 2016
  • by giangsoda
  • Repository
  • 1 Watchers
  • 0 Stars
  • 11 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Laravel Gsdw Social

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:, (*1)

'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:, (*2)

'Socialite' => Laravel\Socialite\Facades\Socialite::class,

Add information app project in config/services.php configuration file, (*3)

'google' => [
    'client_id' => 'your-github-app-id',
    'client_secret' => 'your-github-app-secret',
    'redirect' => url('social/handle/google'),
],

Default link to login social is /social/redirect/google. Can use html output link: \Gsdw\Social\Helpers\Output::googleButton(), (*4)

Notification

Add code in layout to show notification @if (count($errors) > 0) <ul> @foreach ($errors->all() as $error) <li>{{ $error }}</li> @endforeach </ul> @endif, (*5)

Reference

https://github.com/laravel/socialite, (*6)

The Versions

11/05 2016

dev-master

9999999-dev

Laravel social connect

  Sources   Download

MIT

The Requires

 

by Giang Soda

social loggin

11/05 2016

v0.1.0

0.1.0.0

Laravel social connect

  Sources   Download

MIT

The Requires

 

by Giang Soda

social loggin