Welcome to HowToShipIt — practical how-to guides for developers: code, AI tools, and servers, explained step by step.

Laravel 13.38: Stop Serving Your Users Stale Reads (2026)

Laravel 13.38 database replica sync illustration

You know the bug. A user updates their profile, hits save, the page reloads — and shows the old data. They refresh. Still old. Thirty seconds later it’s correct, and your support inbox has a new message: “your site is broken.” If you read from database replicas, that bug has a name: replica lag. The … Read more

Laravel Rate Limiting: Stop Abuse Before It Starts (2026)

Laravel rate limiting — throttle middleware and named rate limiters, 2026 guide

Why rate limiting is the cheapest security you will ever add Every public endpoint on your Laravel app is an invitation. Login forms invite credential stuffing, password-reset routes invite account enumeration, and any JSON API invites the scraper with a for-loop and a weekend to kill. Laravel rate limiting is the framework’s built-in answer: a … Read more

How to Speed Up Laravel Queries: 10 Fixes to Try Before You Upgrade Your Server (2026)

How to speed up Laravel queries — database query optimization checklist (2026)

If your Laravel app feels slow, your instinct is probably wrong. It’s not the framework, it’s not PHP, and it’s almost certainly not your server plan. Nine times out of ten, it’s your queries: too many of them, too slow, or both. The good news is that query slowness is the most fixable kind of … Read more

Laravel 13.36 Validation Rules: Fluent Rule:: Builders for Everything (2026)

Laravel 13.36 validation rules: fluent Rule builders illustration

Laravel 13.36’s headline change is validation. You have written ‘required_without:phone’ a hundred times. You have also, at least once, typed ‘require_without:phone’ and only discovered it when a real request hit your endpoint — because validation strings only fail at runtime. Your IDE cannot autocomplete them, your refactoring tools cannot see them, and a comma in … Read more

Docker Multi-Stage Builds: Shrink Your Laravel Image (2026)

Docker multi-stage builds: 3-stage Laravel Dockerfile with composer, Node and PHP-FPM stages

Docker Multi-Stage Builds: Shrink Your Laravel Image (2026) If your production Docker image is pushing a gigabyte, the problem usually isn’t your application — it’s everything you shipped around it. Composer’s dev dependencies, the entire Node.js toolchain you used to compile your frontend assets, C compilers and header files: none of that needs to exist … Read more

How to Fix Laravel Migration SQLSTATE Errors: 9 Fixes That Work

How to fix Laravel migration SQLSTATE errors - database repair illustration

Read this first: how to decode a Laravel migration SQLSTATE error If you’ve ever run php artisan migrate and been greeted by a wall of red text starting with SQLSTATE[…], this guide is for you. A Laravel migration SQLSTATE error is just MySQL (or MariaDB/Postgres) telling you exactly what went wrong — the code in … Read more

How to Fix the Most Common Laravel Deployment Errors

Fix common Laravel deployment errors

You pushed your code, ran the deploy script, opened the site — and got a blank 500 error. Laravel deployment errors are one of the most common reasons a working local app refuses to run in production. The causes are almost always the same handful of mistakes: a missing APP_KEY, unwritable storage directories, a stale … Read more