RouteController Instruct a class to be a controller. Controllers are the only classes which can contain routes. Definition #[RouteController] Targets Allowed targets: Attribute::TARGET_CLASS Example Code: #[RouteController] class MyClass { }