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); });