Skip to content

Instantly share code, notes, and snippets.

@andyyou
Last active Oct 28, 2020
Embed
What would you like to do?
Markdium-Laravel 8 - Integrate Jetstream + Socialite in 30 mins
<?php
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\Auth\LoginController;
// ...
Route::middleware(['auth:sanctum', 'verified'])->get('/dashboard', function () {
return Inertia\Inertia::render('Dashboard');
})->name('dashboard');
Route::get('/login/{provider}', [LoginController::class, 'redirectToProvider'])
->name('social.login');
Route::get('/login/{provider}/callback', [LoginController::class, 'handleProviderCallback'])
->name('social.callback');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment