Hello @uprightbiswa
Can you check the format of the id field on invoices? If this is different then the new created invoide_id (like int v.s. bigint, signed vs unsigned) it will fail because the types need to be identical.
ps. I have updated your post to make the migration more readable :)
I changed the foreign I'd relationship, i set payment I'd in invoice table foreign I'd so problem is solve . Thanks for replying
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community