From 452ea372c1d2507349513e0d1889bce9d408783d Mon Sep 17 00:00:00 2001 From: Jan Oppolzer Date: Mon, 25 Nov 2024 14:28:53 +0100 Subject: [PATCH] Fix web.php for destroying trashed Federations --- routes/web.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/web.php b/routes/web.php index 67ea7f4..50f13b1 100644 --- a/routes/web.php +++ b/routes/web.php @@ -114,7 +114,7 @@ Route::post('federations/{federation}/entities', [FederationEntityController::class, 'store'])->name('federations.entities.store')->withTrashed(); Route::delete('federations/{federation}/entities', [FederationEntityController::class, 'destroy'])->name('federations.entities.destroy')->withTrashed(); - Route::resource('federations', FederationController::class)->withTrashed(); + Route::resource('federations', FederationController::class)->withTrashed(['show', 'destroy']); // Categories Route::resource('categories', CategoryController::class)->only('index', 'show');