A simple, step-by-step example for integrating GitHub login into a Laravel 12 application using Laravel Socialite and Bootstrap-based authentication.
👉 Read the complete blog post here:
🔗 Laravel 12 Socialite Login with GitHub OAuth Example
This tutorial shows how to enable GitHub OAuth in a Laravel 12 app using Socialite. It guides you through:
- Setting up authentication scaffolding via Laravel UI (with Bootstrap)
- Installing and configuring Laravel Socialite
- Registering a GitHub OAuth application
- Adding a
github_id
column to users table - Creating routes, controller logic, and views to handle authentication flow
- Logging in users using their GitHub accounts
Social login enhances user experience by removing friction—users can log in instantly without filling out long signup forms.
- PHP, Composer, Node.js, and npm installed
- Basic knowledge of Laravel (routes, controllers, migrations, views)
- A GitHub account to register an OAuth App