$model = App\Models\Flight::where('legs', '>', 100) ->firstOr(['id', 'legs'], function () { // ... });
public function apply(Builder $builder, Model $model) { $builder->where('age', '>', 200); }