From 33df37bcf8ab29957f85a2dec1c0a90dd98abcdc Mon Sep 17 00:00:00 2001 From: Hashaam Zahid <143768406+hashaam-zahid@users.noreply.github.com> Date: Fri, 22 Dec 2023 16:50:22 +0500 Subject: [PATCH] Updated web.php Respecred Sir, prefix and Group route for login added for more easy to read --- routes/web.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/routes/web.php b/routes/web.php index 23706e4..59beee6 100755 --- a/routes/web.php +++ b/routes/web.php @@ -14,9 +14,11 @@ Route::get('/', function () { return view('welcome'); }); - -Route::get('login/{service}', 'Auth\LoginController@redirectToProvider'); -Route::get('login/{service}/callback', 'Auth\LoginController@handleProviderCallback'); +// Prefix and Group Route +Route::prefix('login')->group(function () { + Route::get('{service}', 'Auth\LoginController@redirectToProvider'); + Route::get('{service}/callback', 'Auth\LoginController@handleProviderCallback'); +}); Auth::routes();