Is it possible to send POST data with `MenuItem::postAction()`?
I have a
MenuItem
in my Panel
that I want to send a POST
with:
However, I can't find any documentation on how to send POST
data in the request. This route requires a locale
field to be set. Is there a way to do this?5 Replies
route('locale.update',['locale', $yourlocale])
That adds it to the query params, but this is a
POST
😕how do you have your route defined?
and then on the controller method have
and then
thats one way to handle it