Google Login Adding In Laravel

.env file:
GOOGLE_LOGIN_SECRET_KEY=vfXcMYMWPHkR3wjKhVikaCDY

composer.json file : 
"laravel/socialite": "^2.0"

composer update

config/app.php file:

Provider:
// Laravel Auth Login service provider
        Laravel\Socialite\SocialiteServiceProvider::class,

Alias:
// Socialite
        'Socialite' => Laravel\Socialite\Facades\Socialite::class,
config/services.php file:

'google' => [
        'client_id' => env('GOOGLE_LOGIN_CLIENT_ID'),
        'client_secret' => env('GOOGLE_LOGIN_SECRET_KEY'),
        'redirect' => 'http://localhost:8000/auth/google/callback',
    ],

Comments

Popular posts from this blog

WP register_post_type() with custom CMB2 meta box

Git post receive setup at server for git push to the production from local machine