PHP code example of andrewnovikof / kinohodsocialiteserviceprovider

1. Go to this page and download the library: Download andrewnovikof/kinohodsocialiteserviceprovider library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

andrewnovikof / kinohodsocialiteserviceprovider example snippets


'providers' => [
    // a whole bunch of providers
    // remove 'Laravel\Socialite\SocialiteServiceProvider',
    SocialiteProviders\Manager\ServiceProvider::class, // add
];

/**
 * The event handler mappings for the application.
 *
 * @var array
 */
protected $listen = [
    \SocialiteProviders\Manager\SocialiteWasCalled::class => [
        \AndrewNovikof\SocialiteProviders\Kinohod\KinohodExtendSocialite::class
    ],
];

'kinohod' => [
    'client_id' => env('KINOHOD_ID'),
    'client_secret' => env('KINOHOD_SECRET'),
    'redirect' => env('KINOHOD_REDIRECT'),  
],