F
Filament12mo ago
Medo

I cannot access route inside panel service provider

I am trying to add custom navigation item but I can not access route() helper I am follow same structure like docs https://filamentphp.com/docs/3.x/panels/navigation#registering-custom-navigation-items
No description
Solution:
Werid , I'v tried it today and it's work without change anything , maybe it's cache problem " Iam sure i've cleared cache "
Jump to solution
5 Replies
LeandroFerreira
LeandroFerreira12mo ago
I didn't understand what is the goal, but you can do this
->bootUsing(function () {
dd(OrderServiceResource::getUrl('index'));
})
->bootUsing(function () {
dd(OrderServiceResource::getUrl('index'));
})
Medo
MedoOP12mo ago
@Leandro Ferreira I am trying to implement custom nav item " https://filamentphp.com/docs/3.x/panels/navigation#registering-custom-navigation-items " but it's throw this error
No description
LeandroFerreira
LeandroFerreira12mo ago
did you remove the dd()?
Medo
MedoOP12mo ago
Sure, I'v just added it to debugging
Solution
Medo
Medo12mo ago
Werid , I'v tried it today and it's work without change anything , maybe it's cache problem " Iam sure i've cleared cache "
Want results from more Discord servers?
Add your server