Interactive explainers for Laravel and PHP

See how Laravel and PHP actually work, one mechanism at a time.

Each page takes one mechanism, a Laravel concept like an N+1 query or a queue retry, or core PHP like how preg_replace or a dynamic static call really works, and turns it into a simulator you can step through, break, and run again. You drive. Nothing plays at you.

14 explainers, more on the way 12 topics light + dark, you choose

Queries & Eloquent

2 explainers

Where your queries come from, and when they fire.

Models & data

1 explainer

How Eloquent turns rows into objects, and back.

Database & transactions

1 explainer

Commit, rollback, locks, and the surprises between them.

Queues & jobs

1 explainer

What happens to a job after you dispatch it.

Caching

1 explainer

What the cache saves you, and how it fails under load.

HTTP & container

1 explainer

How a request becomes a response, and who wires it up.

Auth

1 explainer

Who the user is, and where that is stored.

Event sourcing

1 explainer

State as a log of events you can replay.

Types & comparison

1 explainer

What == coerces before it compares, and why === does not.

Strings & regex

2 explainers

How a pattern matches, backtracks, and sometimes blows up.

References & memory

1 explainer

When a value is copied, when it is shared, and why.

Metaprogramming

1 explainer

How a call resolves when the method is not there.