Laravel multiple category

前端 未结 0 423
遇见更好的自我
遇见更好的自我 2021-02-05 05:32

I have category in database with value "1,2,3,4"

How to get content where category is 4

$query->whereIn(\'category_id\', 4);

is it right?

相关标签:
回答
  • 消灭零回复
提交回复
热议问题