Scramble 0.11.0 is here! Laravel Data support, schema enforcement and more
Learn more

Annotations reference

On this page
Scramble PRO
Comprehensive API documentation generation for Spatie’s Laravel Data and Laravel Query Builder.
Are you a visual learner?
Get most out of Scramble with in-depth screencasts.

On this page all available annotations, attributes are collected.

Attributes

AttributeApplies toDescription
ExcludeRouteFromDocsControllers’ methodsExcludes a route from docs.
ExcludeAllRoutesFromDocsControllersExcludes 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.

AnnotationApplies toDescription
@deprecatedClasses, methodsMarks routes of a class as deprecated.
@not-deprecatedMethodsMarks a route of a deprecated controller as not deprecated.
Scramble PRO
Comprehensive API documentation generation for Spatie’s Laravel Data and Laravel Query Builder.