Hide navigation link only in Resources and not everywhere #4368
-
Hello,
Work well, but now I have 2 same link in "Supervisor tools" section and in "Resources" section. When I disable navigation in resource, it hide both links. How can I just hide resource link in "Resources" section. Thank you, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
First set And then $menu->prepend(
MenuSection::make('Supervisor tools', [
MenuItem::resource(FieldsPreviewResource::class)
->canSee(fn ($request) => FieldsPreviewResource::authorizedToViewAny($request)),
])
); |
Beta Was this translation helpful? Give feedback.
-
@bendadaniel hi, im still newbie. i just start doing laravel nova ,and my menu section just only have dashboard and resources . I have created couples of resource but it just go direct under resource menu. May i know , how you did to create other menu field like supervisor tools and statistic ? and where is the right path to put the code ? |
Beta Was this translation helpful? Give feedback.
First set
public static $displayInNavigation = false;
And then