Laravel tip:
Collection-style code is nice.
But if you call each() after get(), you already loaded everything into memory.
For large datasets, use lazy().
Laravel devs, one more video today, and I bet you don't wanna miss this. ๐ช
There is a mystery we saw in yesterday's video, and I resolved it in this one. ๐ซก
After watching, let me know if this should be the default behaviour, adjusted, or fixed? ๐ค
Laravel 13.9 adds the `Conditionable` trait to `PendingDispatch` ๐
You can now use `when()` and `unless()` directly on dispatched jobs for much cleaner inline queue configuration.
A small addition that makes dispatch logic feel way more fluent.
Been coding with AI a lot this week and it's wild how much of an edge real architecture knowledge still is.
Seeing frontier models constantly reach for the wrong abstractions. Easy to course-correct, but only if you already know what good looks like.
๐จ Anthropic just showed a 27-minute workshop on how to actually do prompts for Claude.
Taught by the people who built it.
Free. No registration. No paywall.
I've seen $300 courses that don't cover what they teach in the first 8 minutes.
Watch it and bookmark it now.
Google Brain founder, Andrew Ng:
"100% of my tasks are done by ai agents, self-improving loops are next.
Give it 3-6 months and prompting is gone."
31 minutes of clear explanation on building self-improving agents from scratch.
Worth more than any $500 agentic course.
Watch it, then read the full guide on loops below.
#Laravel#tip:
Route::missing()
With route-model binding, a URL like /orders/99 automatically 404s if order 99 doesn't exist. missing() lets you decide what happens when the lookup fails, per route.