Package Data | |
---|---|
Maintainer Username: | skvn |
Maintainer Contact: | vit@webstandart.ru (Vitaly Nikolenko) |
Package Create Date: | 2016-06-17 |
Package Last Update: | 2016-06-22 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-22 03:04:14 |
Package Statistics | |
---|---|
Total Downloads: | 10 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 0 |
Total Watchers: | 4 |
Total Forks: | 1 |
Total Open Issues: | 0 |
composer require skvn/sociopat
After the package is installed run
php artisan vendor:publish --provider="Skvn\Sociopat\SociopatServiceProvider"
Laravel\Socialite\SocialiteServiceProvider
from your providers[]
array in config\app.php
if you have added it already.Skvn\Sociopat\SociopatServiceProvider
to your providers[]
array in config\app.php
.For example:
'providers' => [
// a whole bunch of providers
// remove 'Laravel\Socialite\SocialiteServiceProvider',
Skvn\Sociopat\SociopatServiceProvider::class, // add
];
Add the credentials for the the providers you are going to use
Add to config/services.php
:
'mailru' => [
'client_id' => env('MAILRU_ID'),
'client_secret' => env('MAILRU_SECRET'),
'redirect' => env('MAILRU_REDIRECT'),
],
Append provider values to your .env
file:
// other values above
MAILRU_ID=your_app_id_for_the_service
MAILRU_SECRET=your_app_secret_for_the_service
MAILRU_REDIRECT=https://example.com/login
Add to config/services.php
:
'odnoklassniki' => [
'client_id' => env('ODNOKLASSNIKI_ID'),
'client_secret' => env('ODNOKLASSNIKI_SECRET'),
'redirect' => env('ODNOKLASSNIKI_REDIRECT'),
],
Append provider values to your .env
file:
Note: Add both public and secret keys!
// other values above
ODNOKLASSNIKI_ID=your_app_id_for_the_service
ODNOKLASSNIKI_PUBLIC=your_app_public_for_the_service
ODNOKLASSNIKI_SECRET=your_app_secret_for_the_service
ODNOKLASSNIKI_REDIRECT=https://example.com/login
For login examples please refer to the Laravel Socialite documentation
Also you an article in Russian is available.