F
Filament16mo ago
Meymink

Show users who are not in team

Hi, i'm trying to create a form which can be used to add members to a team. I'm using a repeater to manage existing users using the following code:
Forms\Components\Repeater::make('teamUsers') ->relationship() ->simple( Forms\Components\Select::make('user_id') ->placeholder('Select a user') ->relationship( 'user', 'name', modifyQueryUsing: function (Builder $query) {} ) ->required() ->searchable(), ),
I'm using a repeater on TeamUser (pivot). How can i only show users who are not in the team already?
2 Replies
Meymink
MeyminkOP16mo ago
No description
Meymink
MeyminkOP16mo ago
Any suggestions? 🙂 Bump. It would be nice if someone could help me out. Tried multiple things here($state, $get) even custom queries. Which do not work

Did you find this page helpful?