Split the elements in an array and pass them to ->columns()
I have a field to check the number of people who have been selected. I first calculate it in the module and then pass an array. However, in this way, each piece of data will directly display the elements in the array. So I used foreach to visit the array in sequence and pass it out. However, it will encounter the error Argument #1 ($columns) must be of type array, int given. How should I modify it?
If you need more information, please let me know.
3 Replies