Limiting the number of records on an eager loaded relationship in Laravel has historically been a pain, with a number of unexpected side effects. In Laravel 11, we can finally lay that issue to rest, because it now works exactly as you’d expect.
Watch Full Larabits Series on: https://laracasts.com/series/whats-ne...
Watch thousands of videos, track your progress, and participate in a massive Laravel community at Laracasts.com.
Laracasts: https://laracasts.com
Laracasts Twitter: / laracasts
Jeffrey Way Twitter: / jeffrey_way