Skip to main content

How to Safely Change DB Relations in Live Laravel Project?

Premium
11:21

The Full Lesson is Only for Premium Members

Want to access all of our courses? (30 h 09 min)

You also get:

55 courses
Premium tutorials
Access to repositories
Private Discord
Get Premium for $129/year or $29/month

Already a member? Login here

Comments & Discussion

MS
Mike Swan ✓ Link copied!

This is a great topic. I haven't come accross alot of lessons about dealing with real world senarios.

HN
Huy Nguyen ✓ Link copied!

Hi, could you provide the link to source code before refactoring to "one article belongs to many categories" and after that? Thank you

PK
Povilas Korop ✓ Link copied!

Unfortunately, I don't have the source code for this. For many courses in the past, I just did experiments and didn't save the source code. In recent courses, I do provide links to GitHub.

VB
Vagelis Bisbikis ✓ Link copied!

Hey Povilas, I am not a big fun of doing data migration inside schema migrations. I think it is more safe to change relationship in steps and not inside one migration. What is your thought about that? Thank you in advance.

M
Modestas ✓ Link copied!

That really depends on your personal preference. Our team usually does them inside one migration and we did not encounter many issues with that approach yet

We'd Love Your Feedback

Tell us what you like or what we can improve

Feel free to share anything you like or dislike about this page or the platform in general.