ipunkt/laravel-socialite-profiles

A Laravel Socialite extension for having multiple social network profiles being attached.

0.1.1 2016-12-06 17:50 UTC

README

Total Downloads Latest Stable Version Latest Unstable Version License

Introduction

Socialite profiles extends the Laravel Socialite package by allowing multiple social network profiles being attached at the user. Attaching and detaching can be done after being logged in.

Installation

Just install the package on your authorization server

composer require ipunkt/laravel-socialite-profiles

and add the Service Provider in your config/app.php

\Ipunkt\Laravel\SocialiteProfiles\SocialiteProfilesServiceProvider::class,

Then use @include('socialite-profiles::logins') in your login blade template to display all possible configured social logins.

Run php artisan vendor:publish --provider="\Ipunkt\Laravel\SocialiteProfiles\SocialiteProfilesServiceProvider"

Configuration

redirect-when-user-logged-in

Setting the redirect path when user logged successfully in.

user-model

Setting model class for your user model.

route

Set your authentication route path. This path will be followed by the social provider.

detaching_route

Set your detaching a social profile route path. This path will be followed by the social provider.

Usage

Use trait HasSocialProfiles in your User model to attach the social profiles.

License

Socialite Profiles is open-sourced software licensed under the MIT license