werkint/object-routing
Object-routing for Laravel maps routes to dedicated object handlers instead of closures, keeping route definitions tidy and logic testable. Handles middleware, parameters, and named routes—a small, focused addition to Laravel's router.
werkint/object-routing brings object-oriented routing to Laravel, letting you bind routes directly to objects and handlers instead of controller strings. Route parameters are resolved into typed instances, so actions receive ready-to-use models or services rather than raw IDs.
How can I help you explore Laravel packages today?