Support the ongoing development of →
Configuration Eloquent Validation
Last updated 1 year ago.

It is not supposed to save 3 rows if you work on a single model.

What you are doing now is: take a Model, assign it some values in a loop, then save and again and again. That being said, you saved the same row 3 times (insert, update, update).

Move $post2 = new Article_tag; into the loop block to make it work. Still this whole thing is a mess, but that's another story.

Last updated 1 year ago.

HI It works. I know it is not the right way but temporarily at least it works for now.

Thank you very much

Last updated 1 year ago.

Sign in to participate in this thread!


Your banner here too?


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

Your logo here?

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

© 2023 - All rights reserved.