© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
3 replies
Trauma Zombie

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();
    }
}
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(),
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.
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Notify User of unsaved data
FilamentFFilament / ❓┊help
3y ago
User select
FilamentFFilament / ❓┊help
16mo ago
Select Or Create
FilamentFFilament / ❓┊help
3y ago
Select->multiple() in SelectColumn?
FilamentFFilament / ❓┊help
12mo ago