How to do getUrl() but another panel?
So I have a customer panel and after they create their order, i have a code that is like this (in the create() method of the Customer Panel CreateOrder class
However i get this error instead when i tried creating the order
Route [filament.customer.resources.orders.edit] not defined.
But clearly I made sure i call the getUrl() method on the OrderResource that is from the Admin panel (even giving it an alias of AdminOrderResource), and not the Customer panel.
5 Replies
I don’t think you can as the other panel is not registered.
but i can access both panel url so isn't that registered
The panel is probably registered. But the resources and pages are not 🤔
i can access both resource page too (in different panel)
Yes but not at the same time. It depends on your url