PHP code example of alternatelife / portal-socialite-provider

1. Go to this page and download the library: Download alternatelife/portal-socialite-provider 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/ */

    

alternatelife / portal-socialite-provider example snippets


protected $listen = [
    \SocialiteProviders\Manager\SocialiteWasCalled::class => [
        'AlternateLife\Socialite\Portal\AlternateLifeExtendSocialite@handle'
    ],
];

'alternatelife' => [
    'client_id'     => env('ALTERNATELIFE_KEY'),
    'client_secret' => env('ALTERNATELIFE_SECRET'),
    'redirect'      => env('ALTERNATELIFE_REDIRECT_URI'),
]

return Socialite::with('alternatelife')->redirect();