Пример #1
0
 public static function haveProducts($id)
 {
     return ProductToCategory::where('category_id', $id)->find_one() !== false;
 }