Artisinal API Platform
summary
Shows how to drop API Platform into a Laravel app with composer require api-platform/laravel and make a model an API resource via attribute or trait on model, then reuse Laravel form requests, policies, middleware, pagination and caching. Demonstrates a concrete thread example: form request -> DTO payload -> dispatch background job that runs a DB transaction with retries, and returns paginated JSON-LD/JSON:API/OpenAPI docs, client generation and admin out of the box, saving many manual CRUD steps.
AI-written summary · about
chapters (10)
- 0:00Introduction and speaker intro
- 3:12What is Artisanal API Platform
- 7:22Building APIs in Laravel
- 13:32Modeling data in Laravel
- 19:40Persisting data with jobs
- 23:16Challenges of complex APIs
- 24:20API Platform meets Laravel
- 29:09Using API Platform with Laravel traits
- 33:25Recap and benefits
- 36:56Why use API Platform with Laravel
