$factoryStates Factory states applied to the example model. * @param list $with Relationships eager loaded onto the example model. * @param string|null $resourceKey The `object` of the rendered items; null renders null. * @param int|null $paginate Renders a list paginated by this many per page. * @param array $meta Example values merged into the response envelope's * top-level meta key, mirroring the controller's * withMeta() output that rendering the resource alone * cannot reproduce. * @param string[] $include Includes to render so the documented response carries * the relationships the endpoint can embed. * @param string[] $withCount Relationship counts to load on the example model, * mirroring the controller's withCount() query. */ public function __construct( string $name, ?string $model = null, int $status = 200, ?string $description = '', bool $collection = false, array $factoryStates = [], array $with = [], public ?string $resourceKey = null, ?int $paginate = null, public array $meta = [], public array $include = [], array $withCount = [], ) { parent::__construct($name, $model, $status, $description, $collection, $factoryStates, $with, $paginate, withCount: $withCount); } }