diff --git a/routes/web.php b/routes/web.php index 0675efce..133a63f2 100644 --- a/routes/web.php +++ b/routes/web.php @@ -79,7 +79,10 @@ Route::resource('/tags', TagController::class)->only(['index', 'create', 'store', 'edit', 'update', 'destroy']); - Route::resource('/reports', ReportController::class)->only(['index', 'show']); + Route::name('reports.')->group(function () { + Route::get('/reports', [ReportController::class, 'index'])->name('index'); + Route::get('/reports/{slug}', [ReportController::class, 'show'])->name('show'); + }); Route::name('imports.')->group(function () { Route::get('/imports', [ImportController::class, 'index'])->name('index');