Nested arrays may not be passed to whereIn method.

Using the Forms package i'm creating an edit field for a user. They can update their skills using a multiple select.

But when loading the page im hit with "Nested Arrays may not be passed to whereIn method"

my component:

    public User $user;
    public array $data;

    public function mount(): void
    {
        $this->user = auth()->user();
        $this->form->fill($this->user->toArray());
    }

    public function form(Form $form): Form
    {
        return $form
            ->schema([
                Select::make('skills')
                    ->relationship('skills', 'title')
                    ->searchable()
                    ->label(__('Skills'))
                    ->multiple()
            ])
            ->statePath('data')
            ->model($this->user);
    }
Was this page helpful?