Scramble 0.13.x is here with full type inference and closure routes support!
Learn more
Annotations reference
On this page
Scramble PRO
Comprehensive API documentation generation for Spatie’s Laravel Data, Laravel Query Builder, and other packages.
On this page all available annotations, attributes are collected.
Attributes
| Attribute | Applies to | Description |
|---|---|---|
ExcludeRouteFromDocs | Controllers’ methods | Excludes a route from docs. |
ExcludeAllRoutesFromDocs | Controllers | Excludes all controller’s routes from docs. |
Note: All attributes are classes located in Dedoc\Scramble\Attributes namespace. So the attribute ExcludeRouteFromDocs in the following table should be imported as Dedoc\Scramble\Attributes\ExcludeRouteFromDocs FQN.
Annotations
Annotations are PHPDoc annotations that should be added to whatever is stated in “Applies to” column.
| Annotation | Applies to | Description |
|---|---|---|
@deprecated | Classes, methods | Marks routes of a class as deprecated. |
@not-deprecated | Methods | Marks a route of a deprecated controller as not deprecated. |