Organizing Code in Laravel
summary
Concrete Laravel code organization: shows using Composer extra for in-tree package development, an Action class pattern with dependency injection plus a simpler fast-action fallback, and a route auto-loader that generates Swagger docs automatically from controller annotations and Request::rules. The demo repo contains stepwise commits illustrating bindings via service providers, resource controller support, middleware and route-param regex, and claims the automatic documentation generation halves development time while noting DI increases instantiation cost.
AI-written summary · about
chapters (10)
- 0:00Introduction
- 1:44Laravel playbook
- 2:25Vendor extras
- 5:41Actions and DI
- 8:15Service providers
- 13:23Caching routes removal
- 14:06Package route auto-load
- 16:36API documentation
- 27:16Documented controllers
- 30:02Q&A
related talks
31mModern PHP development with Laravel 5.6
21mSoftware Design Patterns in Laravel 4
40mEngineering Complex Applications with Laravel 4
38mLaravel Design Patterns
35mCode Refactoring Workshop
29mLuke Downing :: Lessons from the Laravel Framework
49mLaravel - If, how and why you should use it!
33mThe Tao of Laravel
