DevPath

PHP and Laravel backend

Foundations to practical Laravel work: HTTP, persistence, transactions, queues and testing.

6 lessons in foundation · 13 practice activities

Start learning

PHP foundations

Lessons

  1. Values, types and array keys Foundation · 13 min
  2. Validate a request at its boundary Foundation · 12 min

Practice

ActivityTypeLevel
Create a URL-safe slug fluency Foundation Preview
De-duplicate values preserving order fluency Foundation Preview
Extract business logic from a fat controller practical lab Mid Preview
Stop leaking a 500 for a domain conflict debugging Mid Preview
Validate a booking request at the boundary practical lab Foundation Preview

Persistence and data

Lessons

  1. Make related writes atomic Foundation · 14 min
  2. Authorize records and avoid N+1 queries Foundation · 12 min

Practice

ActivityTypeLevel
Diagnose and remove an N+1 query debugging Mid Preview
Find customers with no orders fluency Foundation Preview
Fix an ownership check that lets one user read another user's record debugging Mid Preview
Make a transfer atomic and consistent practical lab Mid Preview

Reliability and delivery

Lessons

  1. Design a job that can safely retry Foundation · 13 min
  2. Prevent double booking under concurrency Foundation · 12 min

Practice

ActivityTypeLevel
Deduplicate a payment webhook practical lab Mid Preview
Make a queued checkout safe to retry practical lab Mid Preview
Prevent a double booking under concurrency practical lab Mid Preview
Write a feature test for a permissions bug tests Mid Preview