Closed scottjo closed 1 month ago
Hey @scottjo! We're sorry to hear that you've hit this issue. 💛
However, it looks like you forgot to fill in the reproduction repository URL. Can you edit your original post and then we'll look at your issue?
We need a public GitHub repository which contains a Laravel app with the minimal amount of Filament code to reproduce the problem. Please do not link to your actual project, what we need instead is a minimal reproduction in a fresh project without any unnecessary code. This means it doesn't matter if your real project is private / confidential, since we want a link to a separate, isolated reproduction. That would allow us to download it and review your bug much easier, so it can be fixed quicker. Please make sure to include a database seeder with everything we need to set the app up quickly.
Package
filament/filament
Package Version
v3.2.83
Laravel Version
v11.9.1
Livewire Version
v3.5.0
PHP Version
8.3.7
Problem description
Two models connected with a many-to-many relationship. Product has many categories and categories have many products through a pivot table. Create one or more categories and create a product - selecting one of the categories in the drop down. This was working as expected and subsequently, having updated Filament to 3.2.83 I now get the array_diff() error.
Expected behavior
Creating / editing a product that has a relation to the category table should save as expected and not create an error. This was working on Filament 3.2.78
Steps to reproduce
Create a category Create a product - select a category when creating a product Save the product Error will occur
Reproduction repository
git@github.com:scottjo/genie.git
Relevant log output