create new model to save laravel example
Example 1: laravel observer
php artisan make:observer UserObserver --model=User
Example 2: laravel scope
public function apply(Builder $builder, Model $model)
{
$builder->where('age', '>', 200);
}