79828085

Date: 2025-11-23 20:14:20
Score: 1.5
Natty:
Report link

I understand what you're trying to do but why would you compare column_x and column_y eadger loading.

For example when you do:

A::with("bs")->get()

cela n'a pas de sens de comparer column_y avec $this->column_x because column_x doesnt exists.

you could do something like:

A::with([
    "bs" => fn ($query) => $query->where('column_y', '=', 'something');
])->get()

Have a good day.

Dorian, PingMyNetwork

Reasons:
  • Blacklisted phrase (1): good day
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Doriann