Back

Hey Laravel Developers,

What do you think is the difference between the following two code snippets?

In the first snippet, we load multiple relationships on the same line using the load method, and in the other, we load multiple relationships on separate lines.

image

1

168

  • No matching results...
  • Searching...

/ 1000

Why do you care? Doesn’t matter much as it essentially does the same thing. Just take the one you prefer and don’t waste your time on a rather unimportant decision like this.

You could use the one/two-way mental model from Jeff Bezos to determine which decisions you should linger on and which aren’t worth your time/ are reversable. Essentially: decisions that can be reversed easily aren’t worth thinking much about, while decisions you can’t easily reverse are like one way doors and you should be careful what to do in this case.

See m.youtube.com/watch?v=rxsdOQa_QkM

1

120

Good concept to know about

85