1. Go to this page and download the library: Download coderyouth/socialite 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/ */
coderyouth / socialite example snippets
/**
* The event handler mappings for the application.
*
* @var array
*/
protected $listen = [
\SocialiteProviders\Manager\SocialiteWasCalled::class => [
\CoderYouth\Socialite\CoderYouthExtendSocialite::class,
],
];
// to turn off stateless
return Socialite::with('coderyouth')->stateless(false)->redirect();
// to use stateless
return Socialite::with('coderyouth')->stateless()->redirect();