Skip to content

Instantly share code, notes, and snippets.

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