PHP code example of kylemass / sociallogin

1. Go to this page and download the library: Download kylemass/sociallogin 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/ */

    

kylemass / sociallogin example snippets


'providers' => [
    ...
    KyleMass\SocialLogin\SocialLoginServiceProvider::class,
],

Route::get('auth/social/{provider}', 'KyleMass\SocialLogin\SocialLoginController@redirectToProvider');
Route::get('auth/{provider}/callback', 'KyleMass\SocialLogin\SocialLoginController@handleProviderCallback');