Highlights from the Flare codebase
summary
Flare is a large Laravel app with 250 OSS packages (60M total downloads, ~4M/month) and the codebase uses a domain-oriented structure rather than type-based folders, with easy refactors via PhpStorm. Class names use suffix naming for classes (e.g., Command, Resource) to reduce ambiguity. Front end uses Inertia + React + TypeScript so server controllers serialize props (including a can object of boolean policy checks) and the client gets JSON on navigation for snappy UX.
AI-written summary · about
chapters (13)
- 0:00Introduction and sponsors
- 1:04Speaker introduction
- 2:51Open source contributions and postcards
- 3:54Talk overview and goals
- 4:58Flare UI walkthrough
- 7:26Naming conventions in large projects
- 10:37Domain-driven code organization
- 18:48HTTP layer and request handling
- 20:16Frontend with Inertia.js
- 28:22TypeScript integration
- 31:32Authorization handling
- 38:56Wrap-up and resources
- 41:45Q&A
