Notify user assigned or detached using Select

Hi guys, I have model Task and model User.
class Task extends Model
{
    public function users(): Relations\BelongsToMany
    {
        return $this->belongsToMany(User::class)
            ->withPivot('assigned_at')
            ->withCasts(['assigned_at' => 'datetime'])
            ->withTimestamps();
    }
}

Then I have this select component inside TaskResource:
Forms\Components\Select::make('users')
    ->label('Users')
    ->relationship('users', 'name')
    ->searchable()
    ->preload()
    ->multiple(),

Is it even possible to notify only assigned or detached users using this Select? I probably know how to do that via relation manager and button Attach and Detach, but I want to do it via this Select.
Was this page helpful?