MYHOSPITALNOW.COM

Find Trusted Doctors & Hospitals

Discover healthcare providers, compare hospitals, and explore treatment options worldwide.

Free Treatment Quotes • Doctor Search • Hospital Comparison

Find Healthcare Options

www.myhospitalnow.com

How to Login with Facebook, GOOGLE and twitter in Laravel?Part-2

How to Login with Facebook, GOOGLE and twitter in Laravel?

Click this, Login with Facebook

Here, we’ll start Login with Google.

Step 1. Open this URL Google Developers Console to create Google client_id and client_secret. Login with your Gmail Account.

Google Choose an account sign-in screen to log in to Google Developers Console

Step 2. Click on Credentials, then Click on Create Credentials and Choose the second option of Credentials i.e. OAuth client ID.

Google APIs Credentials page with Create Credentials menu showing the OAuth client ID option

Step 3. Choose Application Type as Web Application and write your project name.

Create OAuth client ID page with Application type dropdown listing Web application first

Create OAuth client ID form with Web application type selected and name Web client 1
Authorised JavaScript origins set to http://localhost in the Google OAuth client form
Authorised redirect URI field filled with localhost multilogin auth/google/callback URL

Step 4. Click Create button.

Completed Google OAuth client form with origin and callback redirect URI, ready to click Create

Client ID

Step 5. Just, copy this Client ID and Paste inside config/Services.php file.

Sublime Text editing config/services.php with the google client_id line selected

Client Secret

Step 6. Similarly, Copy this Client Secret and Paste this Client Secret inside config/Services.php file.

Sublime Text editing config/services.php with the google client_secret line selected

Step 7. Go to resources/views/welcome.blade.php file and write down this following code:

Welcome.blade.php in Sublime Text with a Google login link to url('/auth/google') highlighted

Run the Project URL

Laravel welcome page with Login, Facebook, Google and Register links in the top-right corner
Login with Google
Sign in with Google account chooser asking to continue to the multilogin Laravel app
Laravel user dashboard showing You are logged in! after Google login as Usha Kiran
User Dashboard

Thanks

Find Trusted Cardiac Hospitals

Compare heart hospitals by city and services — all in one place.

Explore Hospitals
With MotoShare.in, you can book a bike instantly, enjoy doorstep delivery, and ride without worries. Perfect for travelers, professionals, and adventure enthusiasts looking for a seamless mobility solution.

Related Posts

Google Blogger Automation: Complete Guide to Blogger API, Claude Code, Codex and Playwright

Practical tutorial | API publishing, scheduled workflows, multi-blog management and XML theme deployment | November 2026 Featured image (1200 × 630 px): Blogger automation with API and…

Read More

Single Sign-On Implementations: Practical Comparison and Evaluation Guide

This guide expands a short 2015 link list of SSO tools into a practical DevOps reference. You will learn how SSO flows work, how to compare implementations, and how to validate integrations with real commands.

Read More

Complete Tutorial: JWT (JSON Web Token) & OIDC (OpenID Connect)

1. 🔎 What is JWT? Definition Structure 2. 🔎 What is OIDC? Definition Key OIDC Tokens 3. ❓ Why do we need them? JWT OIDC 4. ⚙️…

Read More

Laravel: oauth_access_tokens clean up process

using Laravel Passport—the oauth_access_tokens table balloons when tokens aren’t expiring, not being revoked on logout, or not being purged. Here’s a practical, safe cleanup + prevention plan…

Read More

Keyclock: A Identity & SSO tools

Keycloak: Identity & SSO Tool (IAM in one box) What it is Keycloak is an open-source Identity and Access Management (IAM) platform that provides Single Sign-On (SSO),…

Read More

Laravel: Complete Guide of Laravel Passport

Here’s a comprehensive, up-to-date step-by-step tutorial for setting up and using Laravel Passport (OAuth2 API authentication) with clear explanations, working code samples, and troubleshooting tips—suitable for local…

Read More