I have a category in database with value "1,2,3,4"
How to get content where category is 4
$query->whereIn('category_id', 4);
Is this correct?
question from:https://stackoverflow.com/questions/66054407/laravel-multiple-categoryI have a category in database with value "1,2,3,4"
How to get content where category is 4
$query->whereIn('category_id', 4);
Is this correct?
question from:https://stackoverflow.com/questions/66054407/laravel-multiple-category