[{"data":1,"prerenderedAt":881},["ShallowReactive",2],{"libs":3,"navigation-laravel-json-api":115,"\u002Flaravel-json-api\u002Freference\u002Fvalue-helpers":294,"\u002Flaravel-json-api\u002Freference\u002Fvalue-helpers-surround":876},[4,45,69,95],{"id":5,"color":6,"compatibility":7,"extension":20,"icon":21,"links":22,"meta":27,"name":28,"order":29,"package":30,"related":31,"stem":34,"tagline":35,"__hash__":36,"slug":37,"repository":38,"branch":39,"path":40,"collection":41,"entry":42,"home":43,"version":44},"laravel_json_api_meta\u002Fdocs\u002Fsite\u002Flib.yml","violet",[8,13,16],{"version":9,"php":10,"laravel":11,"status":12},"3.x","^8.3","^12.46 || ^13.0","active",{"version":14,"php":10,"laravel":11,"status":15},"2.x","eol",{"version":17,"php":18,"laravel":19,"status":15},"1.x","^8.1","^10.0 || ^11.0 || ^12.0 || ^13.0","yml","i-lucide-braces",[23],{"label":24,"to":25,"icon":26},"JSON:API 1.1","https:\u002F\u002Fjsonapi.org\u002Fformat\u002F","i-lucide-book-marked",{},"Laravel JSON:API",10,"ark4ne\u002Flaravel-json-api",[32,33],"laravel-api-revisions","laravel-openapi-generator","docs\u002Fsite\u002Flib","JSON:API 1.1 resources for Laravel, with typed values, validated includes and fieldsets, and API revisions.","ILGoVp9rzKYDQc18VV8kkXy3EQOQ8rv87JblFKXYDrU","laravel-json-api","Ark4ne\u002Flaravel-json-api","master","docs\u002Fsite","laravel_json_api","\u002Flaravel-json-api\u002Fgetting-started\u002Fintroduction","\u002Flaravel-json-api","v3.0.0",{"id":46,"color":47,"compatibility":48,"extension":20,"icon":50,"links":51,"meta":56,"name":57,"order":58,"package":59,"related":60,"stem":34,"tagline":61,"__hash__":62,"slug":32,"repository":63,"branch":64,"path":40,"collection":65,"entry":66,"home":67,"version":68},"laravel_api_revisions_meta\u002Fdocs\u002Fsite\u002Flib.yml","amber",[49],{"version":17,"php":10,"laravel":11,"status":12},"i-lucide-git-branch",[52],{"label":53,"to":54,"icon":55},"Agent skill","https:\u002F\u002Fgithub.com\u002FArk4ne\u002Flaravel-api-revisions\u002Ftree\u002Fmain\u002Fskills\u002Flaravel-api-revisions","i-lucide-bot",{},"Laravel API Revisions",20,"ark4ne\u002Flaravel-api-revisions",[37,33],"Typed schemas for Laravel resources and form requests, evolved through dated API revisions, Stripe-style.","w24MBVK4_XliIZ8nVcfnuT9OgR-m-Ytxz31Pxua_mLM","Ark4ne\u002Flaravel-api-revisions","main","laravel_api_revisions","\u002Flaravel-api-revisions\u002Fgetting-started\u002Fintroduction","\u002Flaravel-api-revisions","v1.0.0",{"id":70,"color":71,"compatibility":72,"extension":20,"icon":77,"links":78,"meta":82,"name":83,"order":84,"package":85,"related":86,"stem":34,"tagline":88,"__hash__":89,"slug":33,"repository":90,"branch":39,"path":40,"collection":91,"entry":92,"home":93,"version":94},"laravel_openapi_generator_meta\u002Fdocs\u002Fsite\u002Flib.yml","emerald",[73,75],{"version":17,"php":10,"laravel":74,"status":12},"^13.0",{"version":76,"php":18,"laravel":19,"status":15},"0.6","i-lucide-file-json",[79],{"label":80,"to":81,"icon":26},"OpenAPI Specification","https:\u002F\u002Fspec.openapis.org\u002Foas\u002Flatest.html",{},"Laravel OpenAPI Generator",30,"ark4ne\u002Flaravel-openapi-generator",[87,37,32],"openapi-writer","Generates OpenAPI 3.0, 3.1 and 3.2 documents from a Laravel application, its routes, form requests and resources.","DTt0SVqegMImLmWmwL8LCW5lxRCWFYcnBFOaquLpVwc","Ark4ne\u002Flaravel-openapi-generator","laravel_openapi_generator","\u002Flaravel-openapi-generator\u002Fgetting-started\u002Fintroduction","\u002Flaravel-openapi-generator","v1.2.0",{"id":96,"color":97,"compatibility":98,"extension":20,"icon":101,"links":102,"meta":104,"name":105,"order":106,"package":107,"related":108,"stem":34,"tagline":109,"__hash__":110,"slug":87,"repository":111,"branch":64,"path":40,"collection":112,"entry":113,"home":114,"version":68},"openapi_writer_meta\u002Fdocs\u002Fsite\u002Flib.yml","sky",[99],{"version":17,"php":100,"status":12},"^8.2","i-lucide-file-pen-line",[103],{"label":80,"to":81,"icon":26},{},"OpenAPI Writer",40,"ark4ne\u002Fopenapi-writer",[33],"Framework-agnostic, fluent and immutable PHP builder for OpenAPI 3.0, 3.1 and 3.2 documents, written as JSON or YAML and validated.","JFQcdQ9GEChOkfRKibLjoxZOfnt6HYNsayX2melOzMk","Ark4ne\u002Fopenapi-writer","openapi_writer","\u002Fopenapi-writer\u002Fgetting-started\u002Fintroduction","\u002Fopenapi-writer",[116,135,165,187,216,234,248,282],{"title":117,"since":118,"experimental":119,"icon":120,"path":121,"stem":122,"children":123,"page":119},"Getting started",null,false,"i-lucide-rocket","\u002Flaravel-json-api\u002Fgetting-started","laravel-json-api\u002F1.getting-started",[124,127,131],{"title":125,"path":42,"stem":126,"since":118,"experimental":119},"Introduction","laravel-json-api\u002F1.getting-started\u002F1.introduction",{"title":128,"path":129,"stem":130,"since":118,"experimental":119},"Installation","\u002Flaravel-json-api\u002Fgetting-started\u002Finstallation","laravel-json-api\u002F1.getting-started\u002F2.installation",{"title":132,"path":133,"stem":134,"since":118,"experimental":119},"Quick start","\u002Flaravel-json-api\u002Fgetting-started\u002Fquick-start","laravel-json-api\u002F1.getting-started\u002F3.quick-start",{"title":136,"since":118,"experimental":119,"icon":137,"path":138,"stem":139,"children":140,"page":119},"Resources","i-lucide-box","\u002Flaravel-json-api\u002Fresources","laravel-json-api\u002F2.resources",[141,145,149,153,157,161],{"title":142,"path":143,"stem":144,"since":118,"experimental":119},"Anatomy of a resource","\u002Flaravel-json-api\u002Fresources\u002Fanatomy","laravel-json-api\u002F2.resources\u002F1.anatomy",{"title":146,"path":147,"stem":148,"since":118,"experimental":119},"Attributes & values","\u002Flaravel-json-api\u002Fresources\u002Fattributes","laravel-json-api\u002F2.resources\u002F2.attributes",{"title":150,"path":151,"stem":152,"since":118,"experimental":119},"Conditions","\u002Flaravel-json-api\u002Fresources\u002Fconditions","laravel-json-api\u002F2.resources\u002F3.conditions",{"title":154,"path":155,"stem":156,"since":118,"experimental":119},"Relationships","\u002Flaravel-json-api\u002Fresources\u002Frelationships","laravel-json-api\u002F2.resources\u002F4.relationships",{"title":158,"path":159,"stem":160,"since":118,"experimental":119},"Links & meta","\u002Flaravel-json-api\u002Fresources\u002Flinks-and-meta","laravel-json-api\u002F2.resources\u002F5.links-and-meta",{"title":162,"path":163,"stem":164,"since":118,"experimental":119},"Collections & pagination","\u002Flaravel-json-api\u002Fresources\u002Fcollections","laravel-json-api\u002F2.resources\u002F6.collections",{"title":166,"since":118,"experimental":119,"icon":167,"path":168,"stem":169,"children":170,"page":119},"Requests","i-lucide-arrow-down-up","\u002Flaravel-json-api\u002Frequests","laravel-json-api\u002F3.requests",[171,175,179,183],{"title":172,"path":173,"stem":174,"since":118,"experimental":119},"Includes & sparse fieldsets","\u002Flaravel-json-api\u002Frequests\u002Fincludes-and-fieldsets","laravel-json-api\u002F3.requests\u002F1.includes-and-fieldsets",{"title":176,"path":177,"stem":178,"since":118,"experimental":119},"Validating requests","\u002Flaravel-json-api\u002Frequests\u002Fvalidation","laravel-json-api\u002F3.requests\u002F2.validation",{"title":180,"path":181,"stem":182,"since":118,"experimental":119},"Write requests","\u002Flaravel-json-api\u002Frequests\u002Fwrite-requests","laravel-json-api\u002F3.requests\u002F3.write-requests",{"title":184,"path":185,"stem":186,"since":118,"experimental":119},"Errors & content negotiation","\u002Flaravel-json-api\u002Frequests\u002Ferrors","laravel-json-api\u002F3.requests\u002F4.errors",{"title":188,"since":118,"experimental":119,"icon":50,"path":189,"stem":190,"children":191,"page":119},"API revisions","\u002Flaravel-json-api\u002Frevisions","laravel-json-api\u002F4.revisions",[192,196,200,204,208,212],{"title":193,"path":194,"stem":195,"since":118,"experimental":119},"Overview & declaring revisions","\u002Flaravel-json-api\u002Frevisions\u002Foverview","laravel-json-api\u002F4.revisions\u002F1.overview",{"title":197,"path":198,"stem":199,"since":118,"experimental":119},"Changing a field","\u002Flaravel-json-api\u002Frevisions\u002Fchanging-a-field","laravel-json-api\u002F4.revisions\u002F2.changing-a-field",{"title":201,"path":202,"stem":203,"since":118,"experimental":119},"Adding, removing, new types","\u002Flaravel-json-api\u002Frevisions\u002Fadding-and-removing","laravel-json-api\u002F4.revisions\u002F3.adding-and-removing",{"title":205,"path":206,"stem":207,"since":118,"experimental":119},"Guards","\u002Flaravel-json-api\u002Frevisions\u002Fguards","laravel-json-api\u002F4.revisions\u002F4.guards",{"title":209,"path":210,"stem":211,"since":118,"experimental":119},"Write requests across revisions","\u002Flaravel-json-api\u002Frevisions\u002Fwrite-requests","laravel-json-api\u002F4.revisions\u002F5.write-requests",{"title":213,"path":214,"stem":215,"since":118,"experimental":119},"Checking & retiring a revision","\u002Flaravel-json-api\u002Frevisions\u002Fchecking-and-retiring","laravel-json-api\u002F4.revisions\u002F6.checking-and-retiring",{"title":217,"since":118,"experimental":119,"icon":218,"path":219,"stem":220,"children":221,"page":119},"Tooling","i-lucide-wrench","\u002Flaravel-json-api\u002Ftooling","laravel-json-api\u002F5.tooling",[222,226,230],{"title":223,"path":224,"stem":225,"since":118,"experimental":119},"Checking resources","\u002Flaravel-json-api\u002Ftooling\u002Fchecking-resources","laravel-json-api\u002F5.tooling\u002F1.checking-resources",{"title":227,"path":228,"stem":229,"since":118,"experimental":119},"Static analysis","\u002Flaravel-json-api\u002Ftooling\u002Fstatic-analysis","laravel-json-api\u002F5.tooling\u002F2.static-analysis",{"title":231,"path":232,"stem":233,"since":118,"experimental":119},"Deployment","\u002Flaravel-json-api\u002Ftooling\u002Fdeployment","laravel-json-api\u002F5.tooling\u002F3.deployment",{"title":235,"since":118,"experimental":119,"icon":236,"path":237,"stem":238,"children":239,"page":119},"Integrations","i-lucide-plug","\u002Flaravel-json-api\u002Fintegrations","laravel-json-api\u002F6.integrations",[240,244],{"title":241,"path":242,"stem":243,"since":118,"experimental":119},"Laravel's native JSON:API","\u002Flaravel-json-api\u002Fintegrations\u002Fnative-json-api","laravel-json-api\u002F6.integrations\u002F1.native-json-api",{"title":245,"path":246,"stem":247,"since":118,"experimental":119},"OpenAPI","\u002Flaravel-json-api\u002Fintegrations\u002Fopenapi","laravel-json-api\u002F6.integrations\u002F2.openapi",{"title":249,"since":118,"experimental":119,"icon":250,"path":251,"stem":252,"children":253,"page":119},"Reference","i-lucide-library","\u002Flaravel-json-api\u002Freference","laravel-json-api\u002F7.reference",[254,258,262,266,270,274,278],{"title":255,"path":256,"stem":257,"since":118,"experimental":119},"Configuration","\u002Flaravel-json-api\u002Freference\u002Fconfiguration","laravel-json-api\u002F7.reference\u002F1.configuration",{"title":259,"path":260,"stem":261,"since":118,"experimental":119},"Value helpers","\u002Flaravel-json-api\u002Freference\u002Fvalue-helpers","laravel-json-api\u002F7.reference\u002F2.value-helpers",{"title":263,"path":264,"stem":265,"since":118,"experimental":119},"Relation helpers","\u002Flaravel-json-api\u002Freference\u002Frelation-helpers","laravel-json-api\u002F7.reference\u002F3.relation-helpers",{"title":267,"path":268,"stem":269,"since":118,"experimental":119},"PHP attributes","\u002Flaravel-json-api\u002Freference\u002Fphp-attributes","laravel-json-api\u002F7.reference\u002F4.php-attributes",{"title":271,"path":272,"stem":273,"since":118,"experimental":119},"Commands","\u002Flaravel-json-api\u002Freference\u002Fcommands","laravel-json-api\u002F7.reference\u002F5.commands",{"title":275,"path":276,"stem":277,"since":118,"experimental":119},"Diagnostics","\u002Flaravel-json-api\u002Freference\u002Fdiagnostics","laravel-json-api\u002F7.reference\u002F6.diagnostics",{"title":279,"path":280,"stem":281,"since":118,"experimental":119},"Extension points","\u002Flaravel-json-api\u002Freference\u002Fextension-points","laravel-json-api\u002F7.reference\u002F7.extension-points",{"title":283,"path":284,"children":285},"Releases","\u002Flaravel-json-api\u002Freleases",[286,290],{"title":287,"path":288,"stem":289,"since":118,"experimental":119},"Upgrade guide","\u002Flaravel-json-api\u002Fupgrade","laravel-json-api\u002FUPGRADE",{"title":291,"path":292,"stem":293,"since":118,"experimental":119},"Changelog","\u002Flaravel-json-api\u002Fchangelog","laravel-json-api\u002FCHANGELOG",{"id":295,"title":259,"body":296,"description":869,"experimental":119,"extension":870,"links":118,"meta":871,"navigation":872,"path":260,"rawbody":873,"seo":874,"since":118,"stem":261,"__hash__":875},"laravel_json_api\u002Flaravel-json-api\u002F7.reference\u002F2.value-helpers.md",{"type":297,"value":298,"toc":860},"minimark",[299,315,320,585,589,592,764,768,817,821],[300,301,302,303,307,308,310,311,314],"p",{},"Called on ",[304,305,306],"code",{},"$this"," in a hook. The first argument is the key read on the model (the member name by default) or a closure\nreceiving the model. Each returns a descriptor of ",[304,309,59],{},". See\n",[312,313,146],"a",{"href":147}," for examples.",[316,317,319],"h2",{"id":318},"helpers","Helpers",[321,322,323,339],"table",{},[324,325,326],"thead",{},[327,328,329,333,336],"tr",{},[330,331,332],"th",{},"Helper",[330,334,335],{},"Renders",[330,337,338],{},"Own modifiers",[340,341,342,355,367,392,407,425,444,462,481,496,508,520,532,544,556,568],"tbody",{},[327,343,344,350,353],{},[345,346,347],"td",{},[304,348,349],{},"bool()",[345,351,352],{},"a boolean",[345,354],{},[327,356,357,362,365],{},[345,358,359],{},[304,360,361],{},"integer()",[345,363,364],{},"an integer",[345,366],{},[327,368,369,374,377],{},[345,370,371],{},[304,372,373],{},"float()",[345,375,376],{},"a float",[345,378,379,382,383,382,386,382,389],{},[304,380,381],{},"precision(int)",", ",[304,384,385],{},"truncate()",[304,387,388],{},"min()",[304,390,391],{},"max()",[327,393,394,399,402],{},[345,395,396],{},[304,397,398],{},"string()",[345,400,401],{},"a string",[345,403,404],{},[304,405,406],{},"format('email')",[327,408,409,414,420],{},[345,410,411],{},[304,412,413],{},"date()",[345,415,416,417],{},"a date without time, ",[304,418,419],{},"Y-m-d",[345,421,422],{},[304,423,424],{},"format('d\u002Fm\u002FY')",[327,426,427,432,439],{},[345,428,429],{},[304,430,431],{},"datetime()",[345,433,434,435,438],{},"a date and time, ",[304,436,437],{},"revisions.date_time_format"," (ATOM)",[345,440,441],{},[304,442,443],{},"format('Y-m-d H:i')",[327,445,446,451,457],{},[345,447,448],{},[304,449,450],{},"time()",[345,452,453,454],{},"a time of day, ",[304,455,456],{},"H:i:s",[345,458,459],{},[304,460,461],{},"format('H:i')",[327,463,464,469,476],{},[345,465,466],{},[304,467,468],{},"decimal()",[345,470,471,472,475],{},"an exact decimal as a string (",[304,473,474],{},"\"12.50\"",")",[345,477,478],{},[304,479,480],{},"scale(2)",[327,482,483,491,494],{},[345,484,485,382,488],{},[304,486,487],{},"uuid()",[304,489,490],{},"ulid()",[345,492,493],{},"a string with its format",[345,495],{},[327,497,498,503,506],{},[345,499,500],{},[304,501,502],{},"json()",[345,504,505],{},"a JSON string, decoded",[345,507],{},[327,509,510,515,518],{},[345,511,512],{},[304,513,514],{},"array()",[345,516,517],{},"a list of values of any type",[345,519],{},[327,521,522,527,530],{},[345,523,524],{},[304,525,526],{},"arrayOf($this->string(), 'tags')",[345,528,529],{},"a typed list",[345,531],{},[327,533,534,539,542],{},[345,535,536],{},[304,537,538],{},"enum(State::class)",[345,540,541],{},"the value of a backed enum",[345,543],{},[327,545,546,551,554],{},[345,547,548],{},[304,549,550],{},"struct(['city' => $this->string()], 'address')",[345,552,553],{},"an object of described members",[345,555],{},[327,557,558,563,566],{},[345,559,560],{},[304,561,562],{},"mixed()",[345,564,565],{},"the value as it is",[345,567],{},[327,569,570,576,582],{},[345,571,572,573],{},"a name registered in ",[304,574,575],{},"TypeRegistry",[345,577,578,579],{},"a type of the application: ",[304,580,581],{},"$this->money('price')",[345,583,584],{},"its own",[316,586,588],{"id":587},"modifiers-of-every-value","Modifiers of every value",[300,590,591],{},"Each returns a copy.",[321,593,594,604],{},[324,595,596],{},[327,597,598,601],{},[330,599,600],{},"Modifier",[330,602,603],{},"Effect",[340,605,606,625,643,653,665,675,685,695,705,719,735,749],{},[327,607,608,613],{},[345,609,610],{},[304,611,612],{},"->nullable(bool $nullable = true)",[345,614,615,618,619,621,622,624],{},[304,616,617],{},"null"," renders ",[304,620,617],{},"; not nullable, ",[304,623,617],{}," is a value error",[327,626,627,632],{},[345,628,629],{},[304,630,631],{},"->when(Closure $condition)",[345,633,634,635,638,639,642],{},"Rendered only when the closure returns ",[304,636,637],{},"true","; receives ",[304,640,641],{},"($model, $attribute)",", runs before the value is read",[327,644,645,650],{},[345,646,647],{},[304,648,649],{},"->unless(Closure $condition)",[345,651,652],{},"Left out when the closure returns a truthy value",[327,654,655,660],{},[345,656,657],{},[304,658,659],{},"->whenNotNull()",[345,661,662,663],{},"Left out when ",[304,664,617],{},[327,666,667,672],{},[345,668,669],{},[304,670,671],{},"->whenFilled()",[345,673,674],{},"Left out when empty",[327,676,677,682],{},[345,678,679],{},[304,680,681],{},"->whenHas(?string $key = null)",[345,683,684],{},"Left out when the model has no such attribute",[327,686,687,692],{},[345,688,689],{},[304,690,691],{},"->whenLoaded(string $relation)",[345,693,694],{},"Left out unless the relation is loaded",[327,696,697,702],{},[345,698,699],{},[304,700,701],{},"->whenAppended(?string $attribute = null)",[345,703,704],{},"Rendered only when the accessor is appended",[327,706,707,712],{},[345,708,709],{},[304,710,711],{},"->whenInFields()",[345,713,714,715,718],{},"Left out unless ",[304,716,717],{},"fields[type]"," names it explicitly",[327,720,721,732],{},[345,722,723,382,726,382,729],{},[304,724,725],{},"->describe('…')",[304,727,728],{},"->example(…)",[304,730,731],{},"->deprecated()",[345,733,734],{},"Documentation of the field",[327,736,737,742],{},[345,738,739],{},[304,740,741],{},"->was(Revision $revision, name: …, schema: …, down: …)",[345,743,744,745,748],{},"What the field was up to ",[304,746,747],{},"$revision"," included",[327,750,751,759],{},[345,752,753,382,756],{},[304,754,755],{},"->since(Revision $revision)",[304,757,758],{},"->until(Revision $revision)",[345,760,761,762,748],{},"The field exists from \u002F up to ",[304,763,747],{},[316,765,767],{"id":766},"conditional-helpers-of-a-resource","Conditional helpers of a resource",[321,769,770,778],{},[324,771,772],{},[327,773,774,776],{},[330,775,332],{},[330,777,603],{},[340,779,780,790,804],{},[327,781,782,787],{},[345,783,784],{},[304,785,786],{},"$this->applyWhen(Closure $condition, array $members)",[345,788,789],{},"Members rendered when the closure holds for the resource",[327,791,792,797],{},[345,793,794],{},[304,795,796],{},"$this->whenInFields(Request $request, string $attribute, Descriptor|Closure $value)",[345,798,799,800,803],{},"A value rendered only when ",[304,801,802],{},"fields"," requests the attribute",[327,805,806,811],{},[345,807,808],{},[304,809,810],{},"$this->whenInIncludes(Request $request, string $relationship, Descriptor|Closure $value)",[345,812,799,813,816],{},[304,814,815],{},"include"," names the relationship",[316,818,820],{"id":819},"properties-of-a-resource","Properties of a resource",[321,822,823,832],{},[324,824,825],{},[327,826,827,830],{},[330,828,829],{},"Property",[330,831,603],{},[340,833,834,847],{},[327,835,836,841],{},[345,837,838],{},[304,839,840],{},"protected ?bool $autoWhenHas = true;",[345,842,843,846],{},[304,844,845],{},"whenHas()"," on every value read from a key of the model",[327,848,849,854],{},[345,850,851],{},[304,852,853],{},"protected ?bool $autoWhenIncluded = true;",[345,855,856,859],{},[304,857,858],{},"whenIncluded()"," on every relationship",{"title":861,"searchDepth":862,"depth":862,"links":863},"",3,[864,866,867,868],{"id":318,"depth":865,"text":319},2,{"id":587,"depth":865,"text":588},{"id":766,"depth":865,"text":767},{"id":819,"depth":865,"text":820},"Every value helper and modifier available in the hooks of a resource.","md",{},true,"---\ntitle: Value helpers\ndescription: Every value helper and modifier available in the hooks of a resource.\n---\n\nCalled on `$this` in a hook. The first argument is the key read on the model (the member name by default) or a closure\nreceiving the model. Each returns a descriptor of `ark4ne\u002Flaravel-api-revisions`. See\n[Attributes & values](\u002Flaravel-json-api\u002Fresources\u002Fattributes) for examples.\n\n## Helpers\n\n| Helper | Renders | Own modifiers |\n| --- | --- | --- |\n| `bool()` | a boolean | |\n| `integer()` | an integer | |\n| `float()` | a float | `precision(int)`, `truncate()`, `min()`, `max()` |\n| `string()` | a string | `format('email')` |\n| `date()` | a date without time, `Y-m-d` | `format('d\u002Fm\u002FY')` |\n| `datetime()` | a date and time, `revisions.date_time_format` (ATOM) | `format('Y-m-d H:i')` |\n| `time()` | a time of day, `H:i:s` | `format('H:i')` |\n| `decimal()` | an exact decimal as a string (`\"12.50\"`) | `scale(2)` |\n| `uuid()`, `ulid()` | a string with its format | |\n| `json()` | a JSON string, decoded | |\n| `array()` | a list of values of any type | |\n| `arrayOf($this->string(), 'tags')` | a typed list | |\n| `enum(State::class)` | the value of a backed enum | |\n| `struct(['city' => $this->string()], 'address')` | an object of described members | |\n| `mixed()` | the value as it is | |\n| a name registered in `TypeRegistry` | a type of the application: `$this->money('price')` | its own |\n\n## Modifiers of every value\n\nEach returns a copy.\n\n| Modifier | Effect |\n| --- | --- |\n| `->nullable(bool $nullable = true)` | `null` renders `null`; not nullable, `null` is a value error |\n| `->when(Closure $condition)` | Rendered only when the closure returns `true`; receives `($model, $attribute)`, runs before the value is read |\n| `->unless(Closure $condition)` | Left out when the closure returns a truthy value |\n| `->whenNotNull()` | Left out when `null` |\n| `->whenFilled()` | Left out when empty |\n| `->whenHas(?string $key = null)` | Left out when the model has no such attribute |\n| `->whenLoaded(string $relation)` | Left out unless the relation is loaded |\n| `->whenAppended(?string $attribute = null)` | Rendered only when the accessor is appended |\n| `->whenInFields()` | Left out unless `fields[type]` names it explicitly |\n| `->describe('…')`, `->example(…)`, `->deprecated()` | Documentation of the field |\n| `->was(Revision $revision, name: …, schema: …, down: …)` | What the field was up to `$revision` included |\n| `->since(Revision $revision)`, `->until(Revision $revision)` | The field exists from \u002F up to `$revision` included |\n\n## Conditional helpers of a resource\n\n| Helper | Effect |\n| --- | --- |\n| `$this->applyWhen(Closure $condition, array $members)` | Members rendered when the closure holds for the resource |\n| `$this->whenInFields(Request $request, string $attribute, Descriptor\\|Closure $value)` | A value rendered only when `fields` requests the attribute |\n| `$this->whenInIncludes(Request $request, string $relationship, Descriptor\\|Closure $value)` | A value rendered only when `include` names the relationship |\n\n## Properties of a resource\n\n| Property | Effect |\n| --- | --- |\n| `protected ?bool $autoWhenHas = true;` | `whenHas()` on every value read from a key of the model |\n| `protected ?bool $autoWhenIncluded = true;` | `whenIncluded()` on every relationship |\n",{"title":259,"description":869},"BHFFOzA2nUkeaqjpN5n39krwABH_yXQ9E4gdi5N2Y-Q",[877,879],{"title":255,"path":256,"stem":257,"description":878,"children":-1},"Every key of config\u002Fjsonapi.php.",{"title":263,"path":264,"stem":265,"description":880,"children":-1},"Every relationship helper and modifier.",1795438902564]