path filament plugin in navigation menu
what are the paths of filament plugins? i want to list them in the adminserviceprovider,
Solution:Jump to solution
``` ->navigation(function (NavigationBuilder $builder): NavigationBuilder {
return $builder->groups([
NavigationGroup::make('Content')
->items([
...ArticleResource::getNavigationItems(),...
8 Replies
It depends on the plugin, every plugins are PHP packages located in the vendor folder
Tho I don't know if there's an easy way to retrieve all of those knowing that many of those don't even need registration in the panels
It is the curator plug-in I want to know the path of.
Vendor/awcodes/filament-curator
packages will always be in the vendor folder under the author then the package name.
But not sure how that solves your question.
Sounds like you need to run a composer command to see what packages have filament as a dependency then list them from there. What do you need the paths for?
To control the menu items from adminPanelProvider. You have to define the path of plugins like curator in there.
So you have navigation items there and u have to define the url
You should be defining those off the resource.
So like MediaResource::getUrl(‘index’) in the case of the Curator media resource.
Is this a custom navigation? Because including the CuratorPlugin in the plugins array on the panel will automatically include it in the navigation.
I will share the code here
Solution
It's solved