ipunkt / laravel-socialite-profiles
A Laravel Socialite extension for having multiple social network profiles being attached.
Requires
- php: ^7.0
- illuminate/contracts: ^5.3
- illuminate/database: ^5.3
- illuminate/http: ~5.3
- illuminate/routing: ~5.3
- ipunkt/laravel-package-manager: ^0.2.0
- laravel/socialite: ~2.0
- socialiteproviders/manager: ~2.0
Requires (Dev)
- mockery/mockery: ~0.9
- phpunit/phpunit: ~5.0
Suggests
- socialiteproviders/dropbox: Social login with Dropbox
- socialiteproviders/xing: Social login with Xing
This package is auto-updated.
Last update: 2023-03-23 02:42:41 UTC
README
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