1. Run: composer require laravel/socialite 2. Go config >> 2.1 Add the following line under the "providers": Laravel\Socialite\SocialiteServiceProvider::class, 2.2 Add this line in aliases: 'Socialite' => Laravel\Socialite\Facades\Socialite::class, 3. Google Client ID: 3.1 Login into the https://console.cloud.google.com/apis/dashboard panel 3.2 Create auth client ID 3.3 Add Redirect URL: http://domain/auth/google/callback 4. Add google_id: 4.1 php artisan make:migration add_google_id_column 4.2 Open the user migration file and add the following code: $table->string('google_id')->nullable(); 4.3 Run the migration script: php artisan migrate 5. Route add: 5.1 Login page route Route::get('/', function () { return view('auth/login'); // redirect to my login page }); 5.2 Redirect to Google Route::get('/google/auth', [LoginController::class, 'redirectToGoogle']); 5.3 Google call back Route::get('/google/auth/callback', [LoginController::class, 'handleGoogleCallback']); 6. Update LoginController 6.1 Add these: use Socialite; use Auth; use Exception; 6.2 Add two methods public function redirectToGoogle() { return Socialite::driver('google')->redirect(); } public function handleGoogleCallback() { try { $user = Socialite::driver('google')->user(); print_r($user); die(); } catch (Exception $e) { return redirect('google/auth'); } } 7. Open .env file add add your client_id and secreate GOOGLE_CLIENT_ID=355389651781-c1v0lp6ioecust9iompf80gijrns.apps.googleusercontent.com GOOGLE_CLIENT_SECRET=GOCSPX-0hnr83mOj2INsPEl652kj6bh3F GOOGLE_REDIRECT=http://localhost/googleLogin/public/auth/google/callback 8. Open config >> services.php and add the following code 'google' => [ 'client_id' => env('GOOGLE_CLIENT_ID'), 'client_secret' => env('GOOGLE_CLIENT_SECRET'), 'redirect' => env('GOOGLE_REDIRECT'), ]