PHP code example of jennifer / steein-oauth2-laravel
1. Go to this page and download the library: Download jennifer/steein-oauth2-laravel 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/ */
jennifer / steein-oauth2-laravel 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 => [
// add your listeners (aka providers) here
'SocialiteProviders\Steein\SteeinExtendSocialite@handle',
],
];
return Socialite::with('steein')->redirect();
// to turn off stateless
return Socialite::with('steein')->stateless(false)->redirect();
// to use stateless
return Socialite::with('steein')->stateless()->redirect();
config/services.php
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.