Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 285 Bytes

ROUTE_CONTROLLER.MD

File metadata and controls

23 lines (17 loc) · 285 Bytes

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 {
}