Skip to content

v[4] belongsToMany - attach() - invalid input syntax for type uuid: "" #1757

Answered by kempsteven
kempsteven asked this question in Help
Discussion options

You must be logged in to vote

Okay I wasted a few hours in this lmao, nothing wrong with the attach().
I just debugged that one item on the array I'm passing on attach() is just an empty string.
hence the error invalid input syntax for type uuid: ""

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by kempsteven
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
1 participant