PHP code example of pacificdev / social-login-for-laravel

1. Go to this page and download the library: Download pacificdev/social-login-for-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/ */

    

pacificdev / social-login-for-laravel example snippets


// login.blade.php
<x-pacificdev::social-login />

// register.blade.php
<x-pacificdev::social-login />

#config/services.php
 'linkedin-openid' => [
        'client_id' => env('LINKEDIN_CLIENT_ID'),
        'client_secret' => env('LINKEDIN_CLIENT_SECRET'),
        'redirect' => env('LINKEDIN_REDIRECT_URL', '/linkedin/auth/callback'),
    ],

# publish the config file
php artisan vendor:publish --tag=pacificdev-social-login-config
# publish the views
php artisan vendor:publish --tag=pacificdev-social-login-views
# publish the migrations
php artisan vendor:publish --tag=pacificdev-social-login-migrations