RESTful API: What's New in Laravel 5.5
summary
Laravel 5.5 introduces built-in Transformer-like Resource classes that replace Fractal and let you build a RESTful API with less code. The talk demonstrates creating resource controllers and RESTful routes, using Eloquent methods (find, all), returning 201 and 204 status codes, and explains Resource classes' toArray for hiding/formatting fields plus the distinction between collection vs resource for lists versus single records.
AI-written summary · about
chapters (6)
- 0:00Laravel intro
- 3:03Models and relations
- 6:40Resource controllers
- 7:21Artisan quick gen
- 12:29Laravel 5.5 new
- 17:17Q&A
related talks
40mCrafting Elegant APIs with Laravel
54mState of Laravel
41mBuilding first-class REST APIs with Symfony
48mBuilding RESTful APIs with Laravel 5's Doc Block-based Controller Annotations
33mZero to API with Lumen
33mZero to API with Lumen
57mBuilding first-class REST APIs with Symfony
31mBuilding world-class APIs with API Platform for Laravel
