laravelcollective/annotations
LaravelCollective Annotations brings Doctrine-style annotations to Laravel, letting you define routes, middleware, and event listeners directly in controller classes. It scans annotated methods to register routes and hooks, keeping configuration close to your code and reducing clutter in route files...
Consider it when:
Look elsewhere when:
For executives: This upgrade keeps us current on PHP with no licensing cost and no architectural commitment. It lets us modernise our configuration style incrementally rather than as a big-bang rewrite, so it can ride along with work already planned. The one caveat is a small, bounded migration for teams using custom annotations — I'd budget it explicitly rather than discover it mid-sprint.
For engineering: v8.1 adds PHP 8 attribute support and stays backwards compatible with PHP 7, so we can adopt attributes module by module and keep PHP 7 CI green in the meantime. Plan for two things: (1) custom annotation namespaces have changed, so any internal modules or downstream packages declaring them need updating — mechanical, but must land atomically; (2) because this shipped in a minor version, pin the dependency, add an upgrade test around annotation parsing, and read changelogs before bumps. Net: worth taking now, with a pinned version and one scheduled migration ticket.
How can I help you explore Laravel packages today?