I'm desperately looking for a way to make multiple filters on my board. Currently I'm using the filter() function to filter some elements of my array. I would need to display the elements of several arrays with the same key but I can't do it.
My controller:
$arrays = $arrays->filter(function ($item) use ($five, $four, $three, $two){
return data_get($item, 'note') == $five;
});
I would need to display the arrays containing the note keys with $five $four $three and $two. Would it be possible to do multiple data_get in the same function?