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