Lesson 22/25 · 3:11 min
what if the City dropdown is a multiple select, how to set the collect in the mount method?
This is practically the same. Instead of a string/int your $value will be an array. So for that, you need to use whereIn() instead of where() - then you should be good to go
whereIn()
where()
what if the City dropdown is a multiple select, how to set the collect in the mount method?
This is practically the same. Instead of a string/int your $value will be an array. So for that, you need to use
whereIn()
instead ofwhere()
- then you should be good to go