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:
Solution:Jump to solution
try
->multiple()
for BelongsToMany relationships in the Select component
https://filamentphp.com/docs/3.x/forms/fields/select#integrating-with-an-eloquent-relationship...2 Replies
Solution
try
->multiple()
for BelongsToMany relationships in the Select component
https://filamentphp.com/docs/3.x/forms/fields/select#integrating-with-an-eloquent-relationshipSolved! Everything works. Thank you for your answer.