company_id (multi-tenancy) doesn't get saved to the pivot table (remains null)company_id when assigning roles to a user?UserResource to do this, and I just add the roles selector component using:Forms\Components\Select::make('roles')
->label(__('Role(s) (Must select at least 1)'))
->required()
->relationship(
name: 'roles',
titleAttribute: 'name',
modifyQueryUsing: fn (Builder $query) => $query->whereNotIn('perm_name', array('admin', 'super-admin')),
)
->native(false)
->multiple()
->searchable()
->preload(),Join the Discord to ask follow-up questions and connect with the community