Last active
October 28, 2020 06:35
-
-
Save andyyou/e7420365c2ef90a6d78008ae66eb585d to your computer and use it in GitHub Desktop.
Markdium-Laravel 8 - Integrate Jetstream + Socialite in 30 mins
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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