Laravel package, adds social connections management, users can connect multiple social networks to a laravel account.
Status: dev alpha.
- extended handler for oauth providers (with asking for email, if email address not returned from provider)
- resource controller with views for showing current connections in admin
- view component for displaying social network buttons in login/signup form
###Installation
Add new record to the providers list in config/app.php
:
Maynagashev\SocialConnections\SocialConnectionsServiceProvider::class,
Publish package assets by running artisan command:
php artisan vendor:publish
Publish separately:
php artisan vendor:publish --tag=config
php artisan vendor:publish --tag=models
php artisan vendor:publish --tag=views
Routes, controllers, migrations, translations loaded from the package directory.
Because provider's credentials is environment specific and shouldn't be exposed in public, all credentials stored in .env file.
Examples: https://gist.github.com/maynagashev/259fce6e5a845b09dcb0a70e828966f5#file-env
In config/services.php we just getting values from .env file with helper function env('CONST_NAME').
Examples: https://gist.github.com/maynagashev/259fce6e5a845b09dcb0a70e828966f5#file-services-php
Current locale selected by application global configuration variable locale, set in config/app.php
.
- Social connections list in user's profile, with
$app->setLocale('en')
###TODO:
- localization files: ru, en.