~/talk

API Platform Laravel

Talkat API Platform Conference 2024 · 2024-09-19..09-20· [php, api-design]
slides:none on file

API Platform 4 adds first-class Laravel support: install with composer require api-platform/laravel and a default /api route serves Swagger UI and an OpenAPI spec with zero app code. It maps Eloquent models using #[ApiResource], auto-registers REST routes, and generates metadata by running an introspection SQL query (cached to a PHP file for production). GraphQL, CSV, JSON-LD, filters, pagination, Laravel auth, Octane/FrankenPHP compatibility and migrations are supported and demonstrated working end-to-end.

AI-written summary · about

  1. 0:00Introduction and welcome
  2. 2:21API Platform 4 Laravel support
  3. 8:38Standalone API Platform core
  4. 12:01Laravel package structure
  5. 15:23Eloquent ORM in Laravel
  6. 20:49Two-line API setup demo
  7. 25:57Metadata and introspection
  8. 27:04API standards and security
  9. 30:25GraphQL support
  10. 31:28Field visibility and filters
  11. 34:08Configuration and operations
  12. 35:14Authentication in Laravel
  13. 35:58Data validation
  14. 37:26Authorization policies
  15. 37:50Performance with Octane
  16. 39:01Real-time updates with Mercure
  17. 40:12Community and future
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.