Options with multiple condition.
Good evening, how to list an option from database with multiple condition ? At the moment im still using relationship and only have 1 condition.
What i want to achieve is, the option will only show category with parent_id is null and the status is active.
3 Replies
Solution
Just chain another where() clause on.
How do I make it works using ->options ?
Thanks, also fixed it by removing searchable.