Skip to content

Commit

Permalink
Incorrect route name
Browse files Browse the repository at this point in the history
  • Loading branch information
sdebacker committed Feb 25, 2021
1 parent de20559 commit 54e2482
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Providers/RouteServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 54e2482

Please sign in to comment.