Blog

Notes from building and running Laravel in production: query performance, package architecture, Docker-first operations, and build logs from the Shipbytes packages. One post every two weeks.

Pinned

Shopify3 min read

Building a Shopify app with Laravel

An embedded Shopify app on Laravel 13 the way Shopify documents it today: ID tokens and expiring access tokens through the official PHP package, React and Polaris 2 in the admin, webhooks and Events, and a theme app extension. Six parts, every command run against a real store.

Read post →
Security5 min read

Security beyond the checklist in a Laravel app

One small Laravel app through the whole OWASP Top 10, one weakness at a time: named from the attacker's side, reproduced with a test, fixed at the layer that holds, measured with a scanner. Six parts, thirty attack tests, nine scanner warnings to two.

Concurrency6 min read

Race conditions in a Laravel app: reproduce them, then fix them

A small shop with every race a shop can have, each reproduced from a test that fires the action from ten processes at once, then fixed at the lowest layer that holds: a unique index, an atomic update, a WHERE clause, a locking read, a version column, a retried transaction. Five parts.

Performance5 min read

Finding the real performance problem in a Laravel app

A method for finding where a Laravel app is actually slow, applied to a helpdesk with a million rows: a baseline, the profiler, the database, the cache, the queue and the server, and the instruments to notice next time. Six parts, every number measured.

Shopify5 min read

Build a Shopify theme from scratch, with Liquid

A complete storefront built from an empty folder on a real development store, in six parts: Liquid, section groups and JSON templates, theme blocks and the editor, the Cart API and a drawer, search, metafields and a second language, then Lighthouse, Theme Check and publishing.

Testing3 min read

Laravel feature and unit tests, with a real app

What feature and unit tests mean in Laravel, worked through on a real invoicing app: pure domain classes, HTTP flows, fakes and the clock, factories and CI, and a real browser. Six parts on Laravel 13 and Pest 5, every test run.

Tooling3 min read

GitHub Actions for an existing Laravel app

Tests on every pull request against real MySQL and Redis, a deploy on every merge in about two minutes, and a rollback by commit, for an app that already exists, with Docker and without.

Tooling2 min read

Docker for an existing Laravel app

Most Docker tutorials start with a fresh app, which is the one situation nobody is in. This series moves an app your team already runs into Docker without rewriting it, then shows what the team's day looks like afterwards.

Packages2 min read

Build your first Laravel package

A package is a folder with a composer.json and one class Laravel calls. This series builds a small, useful one from an empty folder to a tagged release, one part at a time.