From 619d44d05fa3661312275b00e53b0e2170d1b56d Mon Sep 17 00:00:00 2001 From: Asad Mansuri Date: Wed, 27 Sep 2023 17:15:04 +0530 Subject: [PATCH] Update in web.php file --- routes/web.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/web.php b/routes/web.php index a8c930988..559268812 100644 --- a/routes/web.php +++ b/routes/web.php @@ -34,7 +34,7 @@ }); }); -Route::prefix('admin')->middleware('is_admin')->group(function () { +Route::group(['prefix' => 'admin', 'middleware' => 'is_admin'], function () { Route::get('/dashboard', AdminDashboardController::class); Route::get('/stats', DashboardController::class); });