~/talk

How to JSON:API Quickly and Easily in Laravel

Talkat Laracon Online Winter 2020 · on Wednesday, 2020-02-26· [php, laravel]
slides:none on file

Argues there is no single “best” approach and gives concrete tradeoffs: use Eloquent Resources + spatie/laravel-query-builder for quick work but struggle to produce JSON:API’s flat included documents; use Fractal + fractalistic for built‑in flat includes; use the laravel-json-api package for the most complete, opinionated JSON:API support at the cost of a steeper learning curve. Calls for content negotiation via application/vnd.api+json, rejects unsupported include/sort with 400, and provides a GitHub repo with example branches.

AI-written summary · about

  1. 0:00Introduction to JSON:API in Laravel
  2. 2:50Theory of REST APIs and JSON:API
  3. 14:42State of APIs today and JSON:API history
  4. 19:56JSON:API document structure explained
  5. 25:35HTTP specs and JSON:API conventions
  6. 30:13Why choose JSON:API over alternatives
  7. 35:31JSON:API tooling in Laravel
  8. 41:26Fractal for JSON:API implementation
  9. 44:37Laravel JSON:API package overview
  10. 47:50Other API concerns and caching
  11. 49:12Post-talk considerations and resources
  12. 50:58Summary and final thoughts
~/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.