Skip to content

itstuffsolutions/laravel-12-socialite-login-with-github-oauth-example

Repository files navigation

Laravel 12 GitHub OAuth Login with Socialite

A simple, step-by-step example for integrating GitHub login into a Laravel 12 application using Laravel Socialite and Bootstrap-based authentication.


📖 Full Tutorial

👉 Read the complete blog post here:
🔗 Laravel 12 Socialite Login with GitHub OAuth Example

GitHub Form

Overview

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.


Prerequisites

  • PHP, Composer, Node.js, and npm installed
  • Basic knowledge of Laravel (routes, controllers, migrations, views)
  • A GitHub account to register an OAuth App

About

Laravel 12 Socialite GitHub OAuth Login – Step-by-step setup of Laravel Socialite, GitHub OAuth app, routes, controller, and Blade changes for seamless GitHub authentication.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages