📜  Laravel 查询生成器 toSql 代码示例

📅  最后修改于: 2022-03-11 15:04:52.446000             🧑  作者: Mango

代码示例2
use Illuminate\Database\Eloquent\Builder;

public function scopeFakePersons(Builder $query): Builder
{
  return $query->where('is_fake', 1);
}