I have a MenuItem in my Panel that I want to send a POST with:
MenuItem::make()
->label(
fn () => locale() === 'nl' ? 'English' : 'Nederlands'
)
->postAction(fn () => route('locale.update'))
->icon('heroicon-o-globe-alt'),
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?