I wan to loop where like % in query ()
Please help me !
Article::query()
->where("ar_type_id = '$type_id'")
->andWhere("ar_active = 'Y'")
foreach($arr_tag as $tag) {
->andWhere("ar_name LIKE '%$tag' ")
}
->orderBy("ar_view_count DESC")
->limit(9)
->execute();