Column Not Found SQL ERROR
Hello, i'm using Filament 3.3. I have 3 tables in database ("employees", "departments" and a pivot table "department_employee"). I have a belongsToMany relationship in "Employee" and in "Department" models. I also have a pivot table "department_employee" that joins two tables. When I fill out the form "create employee" and enter data into the database, i get the error message:
Error:
Error:


message.txt4.42KB
Solution
try
https://filamentphp.com/docs/3.x/forms/fields/select#integrating-with-an-eloquent-relationship
->multiple() for BelongsToMany relationships in the Select componenthttps://filamentphp.com/docs/3.x/forms/fields/select#integrating-with-an-eloquent-relationship