Using multi-select does not working when using it inside an Action
Hello, I have a table header action with multi-select, when I choose multiple options and press submit, then after submit $data array is empty
Any ideas how to debug this or what I am doing wrong?
Solution:Jump to solution
It's because you have set it as a relationship, all relationships are removed from data.
4 Replies
in dd(request()->all()) the data is present
Solution
It's because you have set it as a relationship, all relationships are removed from data.
I beleive you can add dehydrate to add it to data according to a post Im saw recenty.
awesome thank you 🙂
Adding
->dehydrated() makes it work, I am not sure it works as expected though