Support the ongoing development of Laravel.io →
posted 1 year ago
Laravel
Last updated by @tvbeek 1 year ago.
0
moderator

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 :)

0

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

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.