From 5197a750bc53abdce41226e49a0a8e5b7e20bf5f Mon Sep 17 00:00:00 2001 From: Joel Butcher Date: Mon, 6 Nov 2023 23:08:12 +0000 Subject: [PATCH] fix: duplicate route names --- routes/socialstream.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/routes/socialstream.php b/routes/socialstream.php index 11eb2820..25de99c9 100644 --- a/routes/socialstream.php +++ b/routes/socialstream.php @@ -5,6 +5,5 @@ Route::group(['middleware' => config('socialstream.middleware', ['web'])], function () { Route::get('/oauth/{provider}', [OAuthController::class, 'redirect'])->name('oauth.redirect'); - Route::get('/oauth/{provider}/callback', [OAuthController::class, 'callback'])->name('oauth.callback'); - Route::post('/oauth/{provider}/callback', [OAuthController::class, 'callback'])->name('oauth.callback'); + Route::match(['get', 'post'], '/oauth/{provider}/callback', [OAuthController::class, 'callback'])->name('oauth.callback'); });