protected static function boot() { parent::boot(); static::addGlobalScope('channel', function (Builder $builder) { $builder->where('is_ads', 1)->where('is_topic', 0); }); Channel::creating(function ($channel) { $channel->is_ads = 1; }); }