Developer Mithu

Developer Mithu Full Stack Laravel Developer | Creator of TallCraftUI | Stay tuned for Web Dev Insights & Updates. πŸ’»β˜

Process Millions of Rows Without Running Out of Memory 🀌Did you know? chunk() can silently skip records if you update th...
15/10/2026

Process Millions of Rows Without Running Out of Memory 🀌

Did you know? chunk() can silently skip records if you update the column you’re filtering on, but lazyById() avoids that and streams rows without loading them all into memory.

The Tip: lazyById() pages through a table using the primary key and returns a LazyCollection, so only one chunk sits in memory at a time. Because it paginates by ID rather than by offset, it stays correct even when your loop changes the rows.

Why It Matters: Memory usage stays flat no matter how big the table gets. It also avoids the skipped-row bug that chunk() can cause when the loop updates the filtered column, such as setting subscribed = true.

Pro Tip: Use lazy() instead when you don’t need ID-based pagination, such as for a simple read-only report. Use chunkById() when you need a callback with explicit chunk handling.

For more: Developer Mithu

Laravel Tips: Catch N+1 Queries Before They Ship 🀌Your Laravel app has an N+1 query problem right now. You just don’t kn...
14/10/2026

Laravel Tips: Catch N+1 Queries Before They Ship 🀌

Your Laravel app has an N+1 query problem right now. You just don’t know it yet. 🐒

Did you know? Laravel can throw an exception the moment your code accidentally runs a query inside a loop, so you catch N+1 problems during development instead of in production.

Tip: Model::preventLazyLoading() makes Eloquent throw an exception whenever a relationship is lazy-loaded. Enable it only outside production so it surfaces problems in development without affecting live users.

Why It Matters: An N+1 bug looks harmless with ten rows and becomes a slow page with ten thousand. This turns a silent performance problem into an immediate, visible error.

Pro Tip: Keep the guard disabled in production. Throwing exceptions there can break a page for users when a rare code path lazy-loads something. Use logging or monitoring for production instead.

Have you ever shipped an N+1 bug to production? Tell me your worst one in the comments ✍️

πŸŽ‰ TallCraftUI v3 is coming soon!We've rebuilt the docs from the ground up to be smarter, faster, and more developer-frie...
07/10/2026

πŸŽ‰ TallCraftUI v3 is coming soon!

We've rebuilt the docs from the ground up to be smarter, faster, and more developer-friendly. Plus, you're getting even more components to build with.

Built with Laravel 13 & Livewire 4.

Can't wait to ship it. Stay tuned! πŸš€

Vibe coders building their startup πŸ˜…
29/01/2026

Vibe coders building their startup πŸ˜…

Hit 10,000+ views on my GitHub profile today πŸŽ‰Grateful for all the developers who connected, starred, and explored my pr...
20/01/2026

Hit 10,000+ views on my GitHub profile today πŸŽ‰

Grateful for all the developers who connected, starred, and explored my projects ❀️

More commits, more learning, more building ahead πŸš€

Explore my work here πŸ‘‡
github.com/developermithu

The Laravel Livewire starter kit now officially supports Livewire 4 πŸ”₯
15/01/2026

The Laravel Livewire starter kit now officially supports Livewire 4 πŸ”₯

⚑ Livewire v4 is officially HERE! βš‘β€‹ ​The TALL stack just got a serious speed boost.β€’ Single-File Components (PHP + Blad...
14/01/2026

⚑ Livewire v4 is officially HERE! ⚑

​ ​The TALL stack just got a serious speed boost.

β€’ Single-File Components (PHP + Blade in one file)
β€’ Blaze Compiler (up to 20x faster rendering)
β€’ Livewire Islands for isolated, non-blocking updates
β€’ Native Slot support & wire:transition

​Time to upgrade! πŸš€



A full-stack framework for Laravel that takes the pain out of building dynamic UIs.

πŸš€ Git Wrapped - leveling up year over yearπŸ—“οΈ Year: 2024 β†’ 2025πŸ“Š Commits: 602 β†’ 1107πŸ† Rank: Top 5% β†’ Top 2%⏱️ Streak: 11 ...
23/12/2025

πŸš€ Git Wrapped - leveling up year over year

πŸ—“οΈ Year: 2024 β†’ 2025
πŸ“Š Commits: 602 β†’ 1107
πŸ† Rank: Top 5% β†’ Top 2%
⏱️ Streak: 11 β†’ 14 days
⚑ Day: Monday β†’ Friday
🧠 Language: JavaScript β†’ JavaScript

Proof that consistency compounds πŸ”₯

Address

Sylhet

Alerts

Be the first to know and let us send you an email when Developer Mithu posts news and promotions. Your email address will not be used for any other purpose, and you can unsubscribe at any time.

Contact The Business

Send a message to Developer Mithu:

Shortcuts

Share