📜  查询生成器 laravel - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:25.107000             🧑  作者: Mango

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

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