Processing large CSV files with Laravel's lazy collections
Loading a 100k-row CSV with `collect()` will blow your memory limit. Laravel's `LazyCollection` gives you the full Collection API backed by PHP generators — here's how to use it.
I’m Steven, a software engineer and technical leader based in the west coast of Scotland. I’m the CTO at Digitonic, where we develop technologies for the investor relations and igaming industries.
Loading a 100k-row CSV with `collect()` will blow your memory limit. Laravel's `LazyCollection` gives you the full Collection API backed by PHP generators — here's how to use it.
Cashier's `redirectToBillingPortal()` gives your users a full subscription management UI — plan changes, cancellations, invoice downloads — in a single redirect. Here's how to wire it up.
Pulse ships with solid built-in recorders. Here's how to extend it with your own — tracking the domain events that actually matter in your app.