PHP code example of ichinya / laravel-socialite

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

    

ichinya / laravel-socialite example snippets


    'drivers' => [
        'google' => '/socialite/google.svg',
        'github' => '/socialite/github.svg',
    ],

  'google' => [
        'client_id' => env('GOOGLE_CLIENT_ID'),
        'client_secret' => env('GOOGLE_CLIENT_SECRET'),
        'redirect' => env('GOOGLE_REDIRECT_URI')
    ],

    'github' => [
        'client_id' => env('GITHUB_CLIENT_ID'),
        'client_secret' => env('GITHUB_CLIENT_SECRET'),
        'redirect' => env('GITHUB_REDIRECT_URI')
    ],

bash
php artisan vendor:publish --tag=ichinya-socialite