Build nested, threaded comments in Laravel using a self-referencing parent_id column and a recursive Eloquent relationship.
Tutorials
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.
Automatically flag user-submitted comments for review before they go live, using a queued job and a structured AI classification call.
Skip the third-party status page subscription. A scheduled command, a small model, and one public route cover most small teams needs.
Render invoices as real HTML and CSS, then convert to PDF with headless Chrome instead of fighting a limited PDF-specific templating engine.
A step-by-step guide to a debounced, keyboard-navigable autocomplete field backed by Eloquent, no JavaScript framework required.
You do not need a machine learning service to recommend related content. A weighted scoring query in Eloquent gets you most of the way there.
Tag articles, products, and anything else through a single reusable table using a polymorphic many-to-many relationship.
Who changed this record, and when? Build a reusable audit trail using Eloquent observers so every create, update, and delete is logged automatically.
Storing money as a float invites rounding bugs. Build a custom Eloquent cast that keeps cents as integers in the database but exposes a clean value object.