PHP code example of chrisjk123 / laravel-social

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

    

chrisjk123 / laravel-social example snippets



  
return [
    // as an example:
    'google' => [
	    'client_id' => env('GOOGLE_CLIENT_ID'),
	    'client_secret' => env('GOOGLE_CLIENT_SECRET'),
	    'redirect' => env('GOOGLE_REDIRECT'),
    ],
    
];

route('auth.provider.callback',  ['provider'  =>  'google'])
bash
php artisan vendor:publish --provider="Chriscreates\Social\Providers\SocialServiceProvider" --tag="social-config"