Skip to content

Commit 3b34e50

Browse files
wip
1 parent a032436 commit 3b34e50

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

mago.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,5 @@ analyzer:
4848
check-throws: false
4949
allow-possibly-undefined-array-keys: true
5050
perform-heuristic-checks: true
51+
ignore:
52+
- missing-override-attribute

src/ServiceProvider.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,11 @@ private function configureNavigation(): void
9494
{
9595
Nav::extend(static function (Navigation $nav): void {
9696
$nav
97-
->content('Backups')
98-
->can('manage backups')
99-
->section('Tools')
97+
->findOrCreate(
98+
section: 'Tools',
99+
name: 'Backups',
100+
)
101+
->can(ability: 'manage backups')
100102
->route('itiden.backup.index')
101103
->icon('save');
102104
});

0 commit comments

Comments
 (0)