Skip to main content

Overview

Structures let you define output shape at runtime. Use SchemaBuilder to define the schema and pass a Structure as response model. If Structure is used as response model, Instructor returns a dynamic value that can be converted with ->toArray(). See more: Structures

Example