Skip to content

Commit

Permalink
CP navigation links fix (#319)
Browse files Browse the repository at this point in the history
  • Loading branch information
steveparks authored Jun 24, 2024
1 parent 0427e00 commit ed30656
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion routes/cp.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
Route::patch('/update', [SettingsController::class, 'update'])->name('update');

// Links
Route::resource('links', 'Cp\LinksController')->only(['index', 'delete']);
Route::resource('links', LinksController::class)->only(['index', 'delete']);
});
4 changes: 2 additions & 2 deletions src/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@ private function bootNavigation(): void
$nav->create('MagicLink')
->icon('link')
->section('Tools')
->route('magiclink.index')
->can('view magiclink settings')
->children([
Nav::item(__('magiclink::cp.settings.settings'))->route('magiclink.index')
->can('view magiclink settings'),
Nav::item(__('magiclink::cp.links.links'))->route('magiclink.links.index')
->can('view links'),
]);
Expand Down

0 comments on commit ed30656

Please sign in to comment.