Unknown argument...Available options are marked with ?.
Hello,
I'm facing a problem while seeding my database. I have an implicit many-to-many relation table, and when creating one of the tables, I want to connect some existing rows from the other table into that one, like this:
The model for invoice:
I thought that maybe the reason for it was that connect didn't accept empty arrays, so I separated with the if clause. But i keep getting the error:
It also prints out the invoices array. Can anyone help me?
0 Replies