eloquet laravel where code example
Example 1: php artisan make model
php artisan make:model Flight
Example 2: laravel scope
public function apply(Builder $builder, Model $model)
{
$builder->where('age', '>', 200);
}
php artisan make:model Flight
public function apply(Builder $builder, Model $model)
{
$builder->where('age', '>', 200);
}