otm
Why Select multiple & TagsInput afterStateUpdated() not triggering
the Solution @Leandro Ferreira suggested did the trick. the the code is Select::make('users')
->label('Users:')
->multiple()
->options([
'test1' => 'Test One',
'test2' => 'Test Two',
'test3' => 'Test Three'
])
->searchable()
->live()
->afterStateUpdated(function (Model $record, $state) {
$record->update(['users' => $state]);
}),
9 replies