laravel orm where 条件中 mysql函数 怎么用

2025-05-13 19:14:28
推荐回答(1个)
回答1:

laravel orm where 条件中 mysql函数

$query->whereRaw('LENGTH(code)=12');