Storing prices as raw integers works until currency enters the picture. Build a Money value object that makes rounding bugs impossible.
Tutorials
Build a reliable outbound webhook system in Laravel with signed payloads, exponential backoff retries, and a delivery log.
Model valid order status transitions with a backed PHP enum and Eloquent, no state machine package required.
Build Laravel middleware that replays cached responses for retried payment requests, so a client timeout never turns into a double charge.
Every SaaS ends up needing a weekly digest email. Build one properly with the scheduler, chunked queries, and queued, rate-limited mail.
Presence channels let you know exactly who is currently viewing a page, in real time. Build a live "who is online" indicator with Reverb.
Support tickets go faster when your team can see exactly what the customer sees. Build a safe, logged, reversible user impersonation feature.
Two checkouts racing for the last item in stock is a classic bug. Build a reservation system with lockForUpdate() that closes the race for good.
Build nested, threaded comments in Laravel using a self-referencing parent_id column and a recursive Eloquent relationship.
A complete walkthrough of building a URL shortener in Laravel with base-62 codes, collision handling, and click tracking.
Skip a database table entirely and track each visitor's recently viewed products with a Redis sorted set instead.
A step-by-step guide to building a reusable tagging system that works across multiple Eloquent models using morphToMany.