Repeater::make('transfers')
->schema([
Forms\Components\Select::make('transfer_type')
->options([
Models\Division::class => __('Division'),
Models\Department::class => __('Department'),
Models\Position::class => __('Position'),
Models\PositionLevel::class => __('Position level'),
Models\Supervisor::class => __('Supervisor'),
])
->distinct()
->native(false)
->live(onBlur: true)
->afterStateUpdated(function (Get $get, Set $set) {
$set('from_id', $this->getFromId($get('transfer_type')));
})
->required(),
Forms\Components\Select::make('from_id')
->label(__('From'))
->disabled()
->options(fn(Get $get) => static::getOptions($get('transfer_type')))
->native(false)
->dehydrated(true)
->required(),
Forms\Components\Select::make('to_id')
->label(__('To'))
->native(false)
->options(fn(Get $get) => static::getOptions($get('transfer_type')))
->disableOptionWhen(fn(Get $get, string $value) => $get('from_id') == $value)
->required(),
])->columns(3)
#I suddenly got issue on Repeater after running composer update
8 messages · Page 1 of 1 (latest)
Yeah, im getting this same error, i guess is something with the searchable() on select fields
also, after composer update yesterday
the strange thing is that i downgraded filament and livewire versions to 3 week ago version, and the error still.
and someone also opened a recent issue, https://github.com/filamentphp/filament/issues/14541
Looks like the problem is with Laravel 11, so you need to lock that to something lower thatn 11.28 (according to this issue at least https://github.com/filamentphp/filament/issues/14528)
Even after downgraded laravel it still not working for me. i will try to downgrade filament also too