use scope in laravel code example
Example: laravel scope
public function apply(Builder $builder, Model $model)
{
$builder->where('age', '>', 200);
}
public function apply(Builder $builder, Model $model)
{
$builder->where('age', '>', 200);
}