From 54e2482eb494a110ee36157823db7a25295ff26b Mon Sep 17 00:00:00 2001 From: Samuel De Backer Date: Thu, 25 Feb 2021 15:30:17 +0100 Subject: [PATCH] Incorrect route name --- src/Providers/RouteServiceProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Providers/RouteServiceProvider.php b/src/Providers/RouteServiceProvider.php index d9e0232..4209729 100644 --- a/src/Providers/RouteServiceProvider.php +++ b/src/Providers/RouteServiceProvider.php @@ -34,7 +34,7 @@ public function map() */ Route::middleware('admin')->prefix('admin')->name('admin::')->group(function (Router $router) { $router->get('objects', [AdminController::class, 'index'])->name('index-objects')->middleware('can:read objects'); - $router->get('objects/export', [AdminController::class, 'export'])->name('admin::export-objects')->middleware('can:read objects'); + $router->get('objects/export', [AdminController::class, 'export'])->name('export-objects')->middleware('can:read objects'); $router->get('objects/create', [AdminController::class, 'create'])->name('create-object')->middleware('can:create objects'); $router->get('objects/{object}/edit', [AdminController::class, 'edit'])->name('edit-object')->middleware('can:read objects'); $router->post('objects', [AdminController::class, 'store'])->name('store-object')->middleware('can:create objects');