— showing –
Skip millions of database lookups with a few MB of bits. How Bloom filters work, the false positive math, sizing, PHP code and Redis BF commands.
Shared mutable objects cause silent data bugs. Use PHP readonly properties and classes to build Money and Email value objects, with-ers and Eloquent casts.
Stream a 2 GB CSV in 2 MB of RAM. How PHP generators work: yield with keys, yield from, send(), Laravel LazyCollection, cursor vs lazyById.
Use the Laravel Pipeline facade to split checkout flows and query filters into pipe classes you can reorder, reuse and unit test, with the pitfalls to avoid.
One 'canceled' vs 'cancelled' typo can strand orders for days. Use backed enums with methods, interfaces, tryFrom and Eloquent casts to kill magic strings.
MD5 and SHA-256 crack in hours once a dump leaks. Pick bcrypt or Argon2id, tune the cost on real hardware and upgrade old hashes on login in PHP and Laravel.
Learn essential techniques to protect your PHP applications from SQL injection attacks.
Discover the new property hooks feature in PHP 8.4 that provides a cleaner way to add logic to property access.
Learn how to optimize database queries in Laravel by using eager loading to prevent N+1 query problems.
We value your privacy
We use cookies to analyse traffic and improve your experience. Analytics and marketing tags only run after you agree. Cookie policy