Black Friday: the Laravel testing course is $149 instead of $249, through Dec 7. See the course →
logo

Discussing different ways to model data

Which do you decide and why?

Joel Clermont
Joel Clermont
2025-12-01

From our daily Laravel tips email. Get the next one in your inbox.

It's easy to overcomplicate data modeling, especially when enums, relationships, and future requirements are in play.

In the latest episode of the No Compromises podcast, Joel brings Aaron a real-world technical dilemma: how to model a relationship between two models when types are stored as enums, not models.

We discuss the pros and cons of pivot tables versus JSON columns, the importance of context before jumping to solutions, and how developer instincts can sometimes get in the way of clarity

  • 00:00 Setting up the technical problem
  • 02:00 Pivot tables vs JSON columns
  • 05:15 Filtering and validation considerations
  • 07:15 Deciding on the best approach
  • 09:50 Silly bit

Listen Now (12 min)

And after listening, don't forget to subscribe to the podcast, so you don't miss future episodes.

Here to help,

Joel

P.S. Want us to think deeply about your code or architecture? Explore our code review options.

Want a tip like this in your inbox every weekday?

Each one takes less than 2 minutes to read. Join 4,000+ Laravel developers who already get them.

email
No spam. Only real-world advice.
Toss a coin in the jar if you found this helpful.