Ok, I've checked and figuret that it's not problem in array_add() but in line bellow :
$task->taskParticipants()->sync(array($task2));
I don't know what has sync to do with this error...
Hi,
did you ever get to fix the error you were having?
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community