[{"data":1,"prerenderedAt":5197},["ShallowReactive",2],{"libs":3,"navigation-laravel-json-api":115,"\u002Flaravel-json-api\u002Fchangelog":294,"\u002Flaravel-json-api\u002Fchangelog-surround":5193},[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":291,"body":296,"description":306,"experimental":119,"extension":5187,"links":118,"meta":5188,"navigation":5189,"path":292,"rawbody":5190,"seo":5191,"since":118,"stem":293,"__hash__":5192},"laravel_json_api\u002Flaravel-json-api\u002FCHANGELOG.md",{"type":297,"value":298,"toc":4984},"minimark",[299,303,307,324,333,344,349,1029,1033,1436,1440,1543,1550,1553,2817,2820,3584,3588,3613,3616,3807,3814,3817,3822,3829,3832,3837,3844,3847,3857,3864,3867,3872,3879,3882,3892,3898,3901,3906,3913,3916,3923,3929,3932,3984,3991,3994,4003,4009,4012,4017,4024,4027,4032,4039,4042,4047,4054,4057,4062,4065,4073,4080,4083,4094,4101,4104,4118,4125,4128,4133,4136,4143,4150,4153,4163,4170,4173,4184,4191,4194,4224,4227,4234,4241,4244,4251,4258,4261,4266,4273,4276,4283,4290,4293,4300,4306,4309,4315,4322,4325,4330,4337,4340,4345,4352,4355,4363,4369,4372,4377,4384,4387,4392,4399,4402,4420,4423,4433,4440,4443,4448,4455,4458,4470,4477,4480,4490,4493,4505,4509,4518,4521,4536,4543,4546,4555,4561,4564,4569,4576,4579,4587,4594,4597,4608,4611,4616,4623,4626,4634,4637,4651,4658,4661,4666,4672,4675,4684,4691,4694,4702,4705,4713,4720,4723,4737,4743,4746,4754,4760,4763,4787,4790,4968,4971,4980],[300,301,291],"h1",{"id":302},"changelog",[304,305,306],"p",{},"All notable changes to this project are documented in this file.",[304,308,309,310,317,318,323],{},"The format is based on ",[311,312,316],"a",{"href":313,"rel":314},"https:\u002F\u002Fkeepachangelog.com\u002Fen\u002F1.1.0\u002F",[315],"nofollow","Keep a Changelog",", and this project adheres to\n",[311,319,322],{"href":320,"rel":321},"https:\u002F\u002Fsemver.org\u002Fspec\u002Fv2.0.0.html",[315],"Semantic Versioning",".",[325,326,328,332],"h2",{"id":327},"_300-2026-11-18",[329,330,331],"span",{},"3.0.0"," - 2026-11-18",[304,334,335,336,339,340,343],{},"3.0: API revisions, Stripe-style, and typed values built on ",[337,338,59],"code",{}," 1.0\n(",[337,341,342],{},"docs\u002Frfc\u002Fapi-revisions-integration.md","). Changes are listed against 2.0.0: 2.1.0 was never released.",[345,346,348],"h3",{"id":347},"added","Added",[350,351,352,392,413,438,441,483,506,523,536,542,548,561,573,584,593,621,648,677,690,702,734,779,806,826,865,881,915,938,952,968,979,991,997,1010,1017],"ul",{},[353,354,355,358,359,362,363,366,367,358,370,373,374,377,378,381,382,384,385,388,389,323],"li",{},[356,357,188],"strong",{}," (",[337,360,361],{},"docs\u002Fsite\u002F4.revisions\u002F","; ",[337,364,365],{},"docs\u002Farchitecture.md","): each client is pinned on a dated revision of\nthe API, and a resource declares only what changed. A revision is a case of an enum implementing\n",[337,368,369],{},"Ark4ne\\ApiRevisions\\Revisions\\Revision",[337,371,372],{},"revisions.enum","), ordered by ",[337,375,376],{},"order()",", the last one being the head;\nthe revision of a request is resolved by the ",[337,379,380],{},"revision"," middleware of ",[337,383,59],{},"\n(",[337,386,387],{},"config\u002Frevisions.php","), an unknown value is answered with 400, and guards read ",[337,390,391],{},"ApiRevision::current()",[353,393,394,397,398,401,402,405,406,408,409,412],{},[337,395,396],{},"->was(R, name:, schema:, down:)",", ",[337,399,400],{},"->since(R)"," and ",[337,403,404],{},"->until(R)"," of ",[337,407,59],{}," on every\ndescriptor: what a field was up to a revision (its name, its shape, the conversion of its value), and the revisions\nit exists at, bounds included. A relationship to another resource at an old revision is\n",[337,410,411],{},"->was(R, schema: $this->one(OldResource::class))",". The links of a resource hold no history.",[353,414,415,401,418,421,422,425,426,429,430,433,434,437],{},[337,416,417],{},"#[Definition\\JsonApiSince(R)]",[337,419,420],{},"#[Definition\\JsonApiUntil(R)]"," on a resource: the type exists from, or up to, a\nrevision; ",[337,423,424],{},"Definitions::lifetime($class)"," gives its ",[337,427,428],{},"Definition\\Lifetime",". Rendering a resource at a revision it does\nnot exist at, as the primary data or through a relationship without a ",[337,431,432],{},"was()"," to the resource of that revision,\nthrows ",[337,435,436],{},"RenderingException::notInRevision()"," before anything is written.",[353,439,440],{},"A resource is rendered at the revision of its request: its attributes, meta, relationships (names, include paths,\nrelated resources, cardinality) and links are those of that revision, its sparse fieldsets are read in the names\nof that revision, and its eager loads are planned at it, in batch.",[353,442,443,397,446,397,449,401,452,455,456,397,459,397,462,401,465,468,469,472,473,476,477,401,480,323],{},[337,444,445],{},"ResourceDefinition::$revision",[337,447,448],{},"$since",[337,450,451],{},"$until",[337,453,454],{},"$fieldNames"," (the names of the code mapped to those of the\nrevision), with ",[337,457,458],{},"revision()",[337,460,461],{},"lifetime()",[337,463,464],{},"existsAt()",[337,466,467],{},"fieldNames()",". ",[337,470,471],{},"Definitions::exists($class, $revision)",",\nand a ",[337,474,475],{},"$revision"," on ",[337,478,479],{},"Definitions::compile()",[337,481,482],{},"Definitions::loadConstraints()",[353,484,485,401,488,491,492,494,495,498,499,401,502,505],{},[337,486,487],{},"new Includes($resource, $maxDepth, $revision)",[337,489,490],{},"new Fields($resource, $revision)"," validate the query of a client\nagainst its revision, by the names at it; ",[337,493,458],{}," returns it, for the tools. ",[337,496,497],{},"JsonApiFormRequest"," validates\n",[337,500,501],{},"include",[337,503,504],{},"fields"," at the revision of the request.",[353,507,508,511,512,515,516,397,519,522],{},[337,509,510],{},"jsonapi:check --revision=Labels"," checks only the shape of that revision; ",[337,513,514],{},"Diagnostic::$revision"," names the revision\na diagnostic was found at (",[337,517,518],{},"Diagnostic::describe()",[337,520,521],{},"Diagnostic::key()",").",[353,524,525,397,528,531,532,535],{},[337,526,527],{},"ResourceAssertions::assertValid($class, $strict, $revision)",[337,529,530],{},"assertValidAtEveryRevision($class, $strict)"," and\n",[337,533,534],{},"definitionAt($class, $revision)"," (the head without revision), for snapshot tests of the contract of each revision.",[353,537,538,541],{},[337,539,540],{},"Support\\Memo",": pure memos of what only depends on the code, flushed by the service provider after every Octane\nrequest, task and tick.",[353,543,544,547],{},[337,545,546],{},"composer benchmark"," also measures resources declaring revisions, at the head and at older revisions.",[353,549,550,552,553,556,557,560],{},[337,551,59],{}," ",[337,554,555],{},"^1.0"," is required; ",[337,558,559],{},"JsonApiServiceProvider"," registers its provider.",[353,562,563,566,567,362,569,572],{},[337,564,565],{},"Context\\CurrentRevision::of($configuration)",": the revision a rendering or a validation is made at, the current one\nof ",[337,568,59],{},[337,570,571],{},"null",", the head, for an application without revision enum.",[353,574,575,401,578,581,582,323],{},[337,576,577],{},"Configuration::$revisions",[337,579,580],{},"withRevisions()",": the revision enum of the application, given by the service\nprovider from ",[337,583,372],{},[353,585,586,589,590,592],{},[337,587,588],{},"JsonApiContext::fromRequest()"," takes an optional ",[337,591,475],{},", for a context built at a given revision.",[353,594,595,397,598,401,601,604,605,607,608,397,611,531,614,358,617,620],{},[337,596,597],{},"Descriptors\\Schemas\\DecimalSchema",[337,599,600],{},"JsonSchema",[337,602,603],{},"MixedSchema",": the types this package adds to those of\n",[337,606,59],{},", registered by the service provider as ",[337,609,610],{},"Schema::decimal()",[337,612,613],{},"Schema::json()",[337,615,616],{},"Schema::mixed()",[337,618,619],{},"Descriptors\\Schemas\\SchemaTypes","). A value they refuse is a value error of the base.",[353,622,623,626,627,630,631,384,633,636,637,401,640,643,644,647],{},[337,624,625],{},"Descriptors\\Schemas\\FloatSchema",", returned by ",[337,628,629],{},"$this->float()",": the float of ",[337,632,59],{},[337,634,635],{},"Kind::Float",": same values accepted, same conversions, same export) with ",[337,638,639],{},"precision()",[337,641,642],{},"truncate()",", as in\n2.0. The value is rounded before its conversion to an older revision; ",[337,645,646],{},"describer.precision"," is its default.",[353,649,650,358,653,656,657,660,661,664,665,668,669,672,673,676],{},[337,651,652],{},"Descriptors\\Schemas\\RelationshipSchema",[337,654,655],{},"Schema::relationship($this->one(…))","): a relation as a field of the\nbase, which gives it its history; a custom type ",[337,658,659],{},"jsonapi.relationship"," whose fragment names the cardinality and the\nrelated resources, converted to itself (a relationship to another resource at an old revision is\n",[337,662,663],{},"->was(R, schema: Schema::relationship(…))","). ",[337,666,667],{},"relationAt($field)"," gives the relation in force at a revision.\nA relationship of another resource is held too: ",[337,670,671],{},"Schema::relationship(CommentResource::relationship(fn() => …))",".\nIts conditions (",[337,674,675],{},"->when(fn($model) => …)",") are read for each resource: the relationship is left out when one\nfails.",[353,678,679,682,683,685,686,689],{},[337,680,681],{},"applyWhen()"," groups descriptors of ",[337,684,59],{}," too: each member takes the condition as a\n",[337,687,688],{},"->when()",", attributes and relationships alike.",[353,691,692,401,695,698,699,701],{},[337,693,694],{},"$this->whenInFields($request, 'name', $descriptor)",[337,696,697],{},"$this->whenInIncludes($request, 'posts', $descriptor)","\ntake a descriptor of ",[337,700,59],{}," and give it the condition, read where each resource is rendered\n(the includes of its place in the document).",[353,703,704,401,707,710,711,384,713,716,717,720,721,401,723,725,726,729,730,733],{},[337,705,706],{},"->whenNotNull()",[337,708,709],{},"->whenFilled()"," on every descriptor of ",[337,712,59],{},[337,714,715],{},"Descriptors\\Schemas\\Conditions",", macros registered by the service provider), ",[337,718,719],{},"->unless()"," being the one of the base;\n",[337,722,706],{},[337,724,709],{}," read the source (its key, or its closure) before the value, as in 2.0. ",[337,727,728],{},"->whenInFields()",": the attribute is rendered only when the sparse fieldset names it, in its\nname at the revision (sparse in the definition). ",[337,731,732],{},"->whenAppended(?string $attribute = null)",": only when the model\nappends the accessor the descriptor reads, or the one named.",[353,735,736,739,740,401,743,405,746,384,748,751,752,397,755,401,758,761,762,397,765,401,768,362,771,774,775,778],{},[337,737,738],{},"JsonApiResource"," implements ",[337,741,742],{},"Revisioned",[337,744,745],{},"HasLifetime",[337,747,59],{},[337,749,750],{},"Resources\\Concerns\\DeclaresSchema","): a resource whose ",[337,753,754],{},"toAttributes()",[337,756,757],{},"toResourceMeta()",[337,759,760],{},"toDocumentMeta()","\nreturn descriptors of the base is compiled, cached, checked, locked and exported by it, as one response holding the\nobjects ",[337,763,764],{},"attributes",[337,766,767],{},"meta",[337,769,770],{},"documentMeta",[337,772,773],{},"#[JsonApiSince]"," \u002F ",[337,776,777],{},"#[JsonApiUntil]"," give its lifetime.",[353,780,781,782,358,784,787,788,791,792,795,796,774,799,802,803,323],{},"The values of such a resource are rendered by ",[337,783,59],{},[337,785,786],{},"Rendering\\ResourcePlan","): its hooks\nrun once per response on a template instance, the sparse fieldset is read in the names of the revision and a field\nit leaves out is never evaluated. ",[337,789,790],{},"JsonApiContext"," carries the ",[337,793,794],{},"Compilation\\Projection"," (the shapes and the\nprojector of the application, ",[337,797,798],{},"Definitions::projectWith()",[337,800,801],{},"projection()",") and a ",[337,804,805],{},"Context\\ResponseCache",[353,807,808,809,811,812,405,815,817,818,821,822,825],{},"A ",[337,810,497],{}," may use the ",[337,813,814],{},"RevisionedRequest",[337,816,59],{},": its ",[337,819,820],{},"body()"," is validated\nin the shape of the client's revision and ",[337,823,824],{},"jsonApi()"," reads the head's.",[353,827,828,831,832,834,835,838,839,842,843,397,846,401,849,362,852,531,855,858,859,861,862,323],{},[337,829,830],{},"Http\\Body",": the body of a JSON:API write request as descriptors, for the ",[337,833,820],{}," of such a request.\n",[337,836,837],{},"Body::resource($resource, attributes: […], relationships: […], id: …)"," declares ",[337,840,841],{},"data.type"," (the type the\nresource renders), ",[337,844,845],{},"data.id",[337,847,848],{},"data.attributes",[337,850,851],{},"data.relationships",[337,853,854],{},"Body::toOne(UserResource::class)",[337,856,857],{},"Body::toMany('tags', 'labels')"," declare a relationship object and the types its linkage accepts. A\n",[337,860,497],{}," writes ",[337,863,864],{},"$this->resourceObject(attributes: …, relationships: …)",[353,866,867,870,871,874,875,877,878,522],{},[337,868,869],{},"Http\\Rules\\Linkage",": a relationship object sent holds its ",[337,872,873],{},"data",", which may be ",[337,876,571],{}," or an\nempty list (",[337,879,880],{},"jsonapi::validation.linkage.missing",[353,882,883,886,887,358,889,892,893,896,897,900,901,384,904,907,908,911,912,522],{},[337,884,885],{},"Compilation\\ResourceCheck",", tagged in the check of ",[337,888,59],{},[337,890,891],{},"revision:check",",\n",[337,894,895],{},"assertRevisionsAreConsistent()","): at each revision, an attribute or a relationship named ",[337,898,899],{},"id"," or ",[337,902,903],{},"type",[337,905,906],{},"jsonapi-reserved-name","), an attribute and a relationship sharing a name (",[337,909,910],{},"jsonapi-name-collision","), a relationship\nto a resource that does not exist there (",[337,913,914],{},"jsonapi-absent-resource",[353,916,917,918,921,922,925,926,929,930,933,934,937],{},"A sparse fieldset naming the members of an object (",[337,919,920],{},"fields[users]=address.city",") or of the objects of a list\n(",[337,923,924],{},"fields[users]=tags.name",") of a resource declared on the base keeps them in its projection plan: a member left\nout is never read nor converted. At a revision where a ",[337,927,928],{},"was(schema:)"," is in force, the members are those of its\nschema, in ",[337,931,932],{},"ResourceDefinition::fields()"," (the ",[337,935,936],{},"Fields"," rule) as in the plan, the value being converted whole.",[353,939,940,943,944,947,948,951],{},[337,941,942],{},"Rendering\\ProjectedValues",": the members a ",[337,945,946],{},"ResourcePlan"," rendered, which the ",[337,949,950],{},"ValueResolver"," gives as they are.",[353,953,954,957,958,961,962,397,964,967],{},[337,955,956],{},"Definitions::for($class, $revision)"," gives the attributes, the meta and the document meta of such a resource from\nits shape at the revision (names, types, nullability, presence), and its ",[337,959,960],{},"fieldNames",": ",[337,963,936],{},[337,965,966],{},"Includes"," and the\ntools read the names of the revision. Without revision, the newest one of the application.",[353,969,970,971,974,975,978],{},"The relationships of such a resource are declared with ",[337,972,973],{},"Schema::relationship()",": its declaration holds a\n",[337,976,977],{},"relationships"," object, and the definition, the include validation, the eager-loads and the rendering read their\nnames and the relation in force from the shape of the revision.",[353,980,981,397,984,397,987,990],{},[337,982,983],{},"$this->struct([...], $source)",[337,985,986],{},"$this->arrayOf($items, $source)",[337,988,989],{},"$this->enum(State::class, $source)",": the\nhelpers of an object, a typed list and an enum.",[353,992,993,994,522],{},"A closure as a member of a hook of values is a value of any type (",[337,995,996],{},"'name' => fn() => …",[353,998,999,401,1002,1005,1006,1009],{},[337,1000,1001],{},"Definitions::head()",[337,1003,1004],{},"DefinitionCompiler::head()",": the newest revision of the application;\n",[337,1007,1008],{},"DefinitionCompiler::compileEvery()"," gives the definition of the head and of every older revision the resource\nexists at.",[353,1011,1012,1013,1016],{},"Diagnostic ",[337,1014,1015],{},"invalid-declaration",": the values of a resource cannot be compiled at the revision of the definition.",[353,1018,1019,1022,1023,1026,1027,323],{},[337,1020,1021],{},"extension.neon",": types those factories and macros for PHPStan, included by ",[337,1024,1025],{},"phpstan\u002Fextension-installer"," or by hand after\nthe extension of ",[337,1028,59],{},[345,1030,1032],{"id":1031},"changed","Changed",[350,1034,1035,1104,1134,1156,1185,1199,1214,1233,1300,1313,1325,1403,1415,1423],{},[353,1036,1037,1040,1041,1043,1044,397,1047,397,1050,1053,1054,397,1057,892,1060,1063,1064,1067,1068,397,1071,397,1074,531,1077,1080,1081,1084,1085,397,1088,892,1091,397,1094,397,1097,397,1100,1103],{},[356,1038,1039],{},"Breaking",": the values of a resource are declared and rendered with ",[337,1042,59],{},".\n",[337,1045,1046],{},"$this->string()",[337,1048,1049],{},"$this->integer()",[337,1051,1052],{},"$this->date()","… return its descriptors (",[337,1055,1056],{},"StringSchema",[337,1058,1059],{},"IntSchema",[337,1061,1062],{},"DateSchema","…), nullable as ",[337,1065,1066],{},"describer.nullable"," says; ",[337,1069,1070],{},"$this->one()",[337,1072,1073],{},"$this->many()",[337,1075,1076],{},"$this->morph()",[337,1078,1079],{},"$this->morphMany()"," return a ",[337,1082,1083],{},"RelationshipSchema",", with the modifiers of a relationship (",[337,1086,1087],{},"links()",[337,1089,1090],{},"meta()",[337,1092,1093],{},"withLoad()",[337,1095,1096],{},"whenIncluded()",[337,1098,1099],{},"filters()",[337,1101,1102],{},"can()","…). A closure given to a helper still receives the model.",[353,1105,1106,961,1108,397,1110,397,1113,401,1115,1117,1118,1121,1122,1125,1126,1129,1130,1133],{},[356,1107,1039],{},[337,1109,754],{},[337,1111,1112],{},"toRelationships()",[337,1114,757],{},[337,1116,760],{}," run once per\nresponse, on a template whose ",[337,1119,1120],{},"$this->resource"," is set to each model before its values are read. A member is a\ndescriptor or a closure under its name: a plain value, a member without name, Laravel's ",[337,1123,1124],{},"$this->when()"," \u002F\n",[337,1127,1128],{},"$this->mergeWhen()"," are refused (",[337,1131,1132],{},"DefinitionException","). The default attributes and the links stay plain values.",[353,1135,1136,1138,1139,892,1142,1145,1146,362,1149,401,1152,1155],{},[356,1137,1039],{},": a condition is a closure read for each resource: ",[337,1140,1141],{},"->when(Closure($model, $attribute))",[337,1143,1144],{},"->unless(Closure)",", run before the value is read (a value whose condition fails is never computed, as in 2.0), ",[337,1147,1148],{},"applyWhen(Closure, array)",[337,1150,1151],{},"$this->whenInFields()",[337,1153,1154],{},"$this->whenInIncludes()"," take a\ndescriptor or a closure and return a descriptor.",[353,1157,1158,961,1160,1163,1164,1167,1168,1171,1172,362,1175,397,1178,401,1181,1184],{},[356,1159,1039],{},[337,1161,1162],{},"enum()"," takes the class of a backed enum; ",[337,1165,1166],{},"struct()"," takes an array of members; ",[337,1169,1170],{},"array()->of()"," is\n",[337,1173,1174],{},"arrayOf()",[337,1176,1177],{},"time()",[337,1179,1180],{},"uuid()",[337,1182,1183],{},"ulid()"," are a date-time and strings with a format.",[353,1186,1187,1189,1190,384,1192,1195,1196,323],{},[356,1188,1039],{},": a value its type refuses is a value error of ",[337,1191,59],{},[337,1193,1194],{},"revisions.strict_values","); the format of a date and time is ",[337,1197,1198],{},"revisions.date_time_format",[353,1200,1201,1203,1204,1207,1208,1210,1211,323],{},[356,1202,1039],{},": a type of the application is a descriptor registered in the ",[337,1205,1206],{},"TypeRegistry"," of\n",[337,1209,59],{},", served by ",[337,1212,1213],{},"$this->money()",[353,1215,1216,961,1218,1220,1221,1223,1224,1226,1227,401,1229,1232],{},[356,1217,1039],{},[337,1219,956],{}," gives one definition per revision (its ",[337,1222,380],{}," is the one\nasked, ",[337,1225,571],{}," for the head, the newest revision), built from the shape of the base; it throws when the values of\nthe resource cannot be compiled. ",[337,1228,479],{},[337,1230,1231],{},"jsonapi:check"," report it as a diagnostic.",[353,1234,1235,1237,1238,1240,1241,397,1244,401,1247,1250,1251,1254,1255,1257,1258,1261,1262,1265,1266,1269,1270,401,1273,1276,1277,401,1280,1283,1284,397,1287,401,1289,468,1292,1295,1296,1299],{},[356,1236,1039],{},": the values of a definition are the model of ",[337,1239,59],{},":\n",[337,1242,1243],{},"ResourceDefinition::$attributes",[337,1245,1246],{},"$meta",[337,1248,1249],{},"$documentMeta"," are the ",[337,1252,1253],{},"Shape","s of the resource at the revision\n(",[337,1256,571],{}," where it has none), ",[337,1259,1260],{},"attribute($name)"," the ",[337,1263,1264],{},"FieldDefinition"," of that name at the revision; ",[337,1267,1268],{},"$links"," is the\nlist of the names of the links; ",[337,1271,1272],{},"$sparse",[337,1274,1275],{},"isSparse()"," name the attributes rendered only when requested.\n",[337,1278,1279],{},"values()",[337,1281,1282],{},"sparse()"," replace ",[337,1285,1286],{},"attributes()",[337,1288,1090],{},[337,1290,1291],{},"documentMeta()",[337,1293,1294],{},"Definition\\AttributeDefinition","\nand ",[337,1297,1298],{},"Definition\\ValueType"," are removed.",[353,1301,1302,1304,1305,1308,1309,1312],{},[356,1303,1039],{},": the compiled file (",[337,1306,1307],{},"jsonapi:cache",") holds the definitions without their shapes, given back on the\nfirst ",[337,1310,1311],{},"Definitions::for()"," from those of the base; a file written by another version is ignored.",[353,1314,1315,1316,401,1318,1321,1322,1324],{},"With the compiled files of ",[337,1317,1307],{},[337,1319,1320],{},"revision:cache",", no hook of a resource runs on a probe: the\nconstraints of its loads are read from its hooks only when its definition declares one (",[337,1323,1093],{}," with a\nclosure).",[353,1326,1327,961,1329,401,1331,1334,1335,1337,1338,1341,1342,397,1345,1348,1349,468,1351,1354,1355,1357,1358,397,1361,1364,1365,1368,1369,401,1371,1374,1375,1378,1379,1381,1382,1385,1386,1388,1389,1392,1393,1396,1397,1400,1401,323],{},[356,1328,1039],{},[337,1330,1231],{},[337,1332,1333],{},"ResourceAssertions"," run the check of ",[337,1336,59],{}," on the\nresources (",[337,1339,1340],{},"Compilation\\ResourceChecker","): the history of their fields and its conversions are checked again, with\nthe codes of the base (",[337,1343,1344],{},"conversion-missing",[337,1346,1347],{},"definition-error","…), and the rules of JSON:API are those of\n",[337,1350,885],{},[337,1352,1353],{},"reserved-name"," becomes ",[337,1356,906],{},", names its field under its object\n(",[337,1359,1360],{},"attributes.title",[337,1362,1363],{},"relationships.author",") and is no longer in ",[337,1366,1367],{},"ResourceDefinition::$diagnostics",", which keeps\n",[337,1370,1015],{},[337,1372,1373],{},"hook-failure","; a class that is not a resource is the finding ",[337,1376,1377],{},"invalid-resource",".\nThe definitions are compiled at every revision the resource exists at: a finding of an older revision names it.\n",[337,1380,1231],{}," runs the ",[337,1383,1384],{},"Checker"," the container binds (that of ",[337,1387,891],{},": its checks, those the\napplication tags with ",[337,1390,1391],{},"RevisionsServiceProvider::CHECKS",", the lock) on the resources checked only\n(",[337,1394,1395],{},"Checker::forClasses()","): a locked class outside them is not reported as gone. ",[337,1398,1399],{},"ResourceChecker"," takes that\n",[337,1402,1384],{},[353,1404,1405,961,1407,1409,1410,1412,1413,323],{},[356,1406,1039],{},[337,1408,1307],{}," writes one definition per resource and revision; ",[337,1411,1231],{}," checks each\nrevision the resource exists at and leaves the history of the fields to ",[337,1414,891],{},[353,1416,1417,861,1420,323],{},[337,1418,1419],{},"make:jsonapi-resource",[337,1421,1422],{},"$this->enum(State::class)",[353,1424,1425,1427,1428,1431,1432,1435],{},[337,1426,546],{}," renders the resources of ",[337,1429,1430],{},"bin\u002Fbenchmark\u002FPackage\u002F"," with this package and those of\n",[337,1433,1434],{},"bin\u002Fbenchmark\u002FLegacy\u002F"," (the API of 1.9) with 1.9.",[345,1437,1439],{"id":1438},"removed","Removed",[350,1441,1442,1478,1499,1518],{},[353,1443,1444,961,1446,1449,1450,397,1453,892,1456,397,1459,397,1462,1465,1466,892,1469,397,1472,401,1475,323],{},[356,1445,1039],{},[337,1447,1448],{},"Descriptors\\Values\\*"," and the trait ",[337,1451,1452],{},"Descriptors\\Values",[337,1454,1455],{},"Descriptors\\ValueTypes",[337,1457,1458],{},"JsonApi::valueType()",[337,1460,1461],{},"Descriptors\\Members",[337,1463,1464],{},"MergeWhenValue",", and the diagnostics ",[337,1467,1468],{},"eager-attribute",[337,1470,1471],{},"merge-when",[337,1473,1474],{},"unnamed-member",[337,1476,1477],{},"invalid-member",[353,1479,1480,961,1482,1485,1486,397,1489,397,1492,531,1495,1498],{},[356,1481,1039],{},[337,1483,1484],{},"toDefinition()"," (a definition written by hand), the overrides of ",[337,1487,1488],{},"when()",[337,1490,1491],{},"whenHas()",[337,1493,1494],{},"merge()",[337,1496,1497],{},"mergeWhen()"," on a resource.",[353,1500,1501,1503,1504,397,1507,401,1510,1513,1514,1517],{},[356,1502,1039],{},": the configuration keys ",[337,1505,1506],{},"describer.datetime",[337,1508,1509],{},"describer.strict",[337,1511,1512],{},"describer.types",": still set, they throw an ",[337,1515,1516],{},"InvalidConfigurationException"," naming what replaces them.",[353,1519,1520,961,1522,397,1525,397,1528,397,1531,531,1534,1537,1538,397,1541,522],{},[356,1521,1039],{},[337,1523,1524],{},"DefinitionCompiler::EAGER_ATTRIBUTE",[337,1526,1527],{},"MERGE_WHEN",[337,1529,1530],{},"UNNAMED_MEMBER",[337,1532,1533],{},"INVALID_MEMBER",[337,1535,1536],{},"RESERVED_NAME"," (now ",[337,1539,1540],{},"Compilation\\ResourceCheck::RESERVED_NAME",[337,1542,906],{},[325,1544,1546,1549],{"id":1545},"_200-2026-11-03",[329,1547,1548],{},"2.0.0"," — 2026-11-03",[345,1551,348],{"id":1552},"added-1",[350,1554,1555,1590,1599,1645,1677,1688,1700,1708,1722,1747,1784,1790,1822,1838,1861,1867,1889,1901,1938,1944,1960,1997,2016,2033,2039,2045,2079,2131,2140,2176,2267,2307,2376,2392,2428,2478,2534,2640,2672,2687,2732,2744,2803],{},[353,1556,1557,552,1560,1563,1564,1567,1568,1571,1572,1574,1575,1577,1578,1580,1581,384,1584,1586,1587,1589],{},[356,1558,1559],{},"Resource definitions.",[337,1561,1562],{},"PostResource::definition()"," (or ",[337,1565,1566],{},"PostCollection::definition()",") returns the\n",[337,1569,1570],{},"ResourceDefinition"," of a resource, compiled once from its hooks without a model: type, typed attributes, struct\nmembers, relationships with their cardinality and eager-loads, links, meta of the resource object and of the document\n(",[337,1573,770],{},", from ",[337,1576,760],{},"). It is the public, immutable and serializable model read by the validation\nrules and by external tools, under semver with ",[337,1579,1311],{}," and the cases of ",[337,1582,1583],{},"ValueType",[337,1585,365],{}," §3). ",[337,1588,1484],{}," lets a resource write it by hand.",[353,1591,1592,401,1595,1598],{},[337,1593,1594],{},"Includes::resource()",[337,1596,1597],{},"Fields::resource()"," return the resource a validation rule validates against, for the\ntools that document the rules.",[353,1600,1601,1603,1604,1606,1607,1609,1610,900,1612,1614,1615,774,1617,1620,1621,1623,1624,1626,1627,1629,1630,774,1632,1634,1635,1638,1639,1642,1643,323],{},[356,1602,275],{}," collected at compilation: eager attribute, ",[337,1605,1497],{},", member without name left out on the probe\n(",[337,1608,1474],{},"), member named ",[337,1611,899],{},[337,1613,903],{},", member that cannot be described, hook failing without a model. The members of ",[337,1616,1497],{},[337,1618,1619],{},"mergeUnless()"," are missing from\nthe definition whatever the condition, with a ",[337,1622,1471],{}," warning: ",[337,1625,681],{}," is the way to group conditional\nmembers, kept in the definition and marked conditional; ",[337,1628,1494],{}," keeps its members. ",[337,1631,1494],{},[337,1633,1497],{}," given\na scalar or an object that is neither iterable, ",[337,1636,1637],{},"Arrayable"," nor ",[337,1640,1641],{},"JsonSerializable"," throws a ",[337,1644,1132],{},[353,1646,1647,1652,1653,1656,1657,1662,1663,401,1666,1669,1670,933,1673,1676],{},[356,1648,1649],{},[337,1650,1651],{},"php artisan jsonapi:cache"," compiles every definition into ",[337,1654,1655],{},"bootstrap\u002Fcache\u002Fjsonapi.php",", read on first use;\n",[356,1658,1659],{},[337,1660,1661],{},"jsonapi:clear"," removes it. Both run with ",[337,1664,1665],{},"php artisan optimize",[337,1667,1668],{},"optimize:clear",". The resources are looked\nfor in ",[337,1671,1672],{},"definitions.paths",[337,1674,1675],{},"app"," directory by default).",[353,1678,1679,1684,1685,522],{},[356,1680,1681],{},[337,1682,1683],{},"php artisan jsonapi:check [resources…] [--strict]"," prints the diagnostics of the resources and fails on an error\n(on a warning too with ",[337,1686,1687],{},"--strict",[353,1689,1690,1695,1696,1699],{},[356,1691,1692],{},[337,1693,1694],{},"php artisan make:jsonapi-resource PostResource [--model=Post] [--force]"," generates a resource from its Eloquent\nmodel: attributes from the casts (with the format of a date and the scale of a decimal), the fillable attributes and\nthe timestamps, relationships from the methods typed with a relation. ",[337,1697,1698],{},"vendor:publish --tag=jsonapi-stubs"," publishes\nits stub.",[353,1701,1702,1707],{},[356,1703,1704],{},[337,1705,1706],{},"Testing\\ResourceAssertions::assertValid(PostResource::class, strict: false)"," for the test suites of applications.",[353,1709,1710,1713,1714,1717,1718,1721],{},[356,1711,1712],{},"Agent skills"," shipped in the package, their examples run by the test suite: ",[337,1715,1716],{},"skills\u002Flaravel-json-api\u002F"," (the\nrules, the reference of every helper, attribute, configuration key and command, and recipes) for coding agents\nwriting resources, ",[337,1719,1720],{},"skills\u002Flaravel-json-api-upgrade\u002F"," (procedure, mapping of every 1.x construct, ported examples)\nfor the migration from 1.x.",[353,1723,1724,1729,1730,358,1732,1735,1736,384,1738,1741,1742,401,1744,1746],{},[356,1725,1726],{},[337,1727,1728],{},"Context\\JsonApiContext",", bound once per request: the parsed ",[337,1731,501],{},[337,1733,1734],{},"IncludeTree",") and ",[337,1737,504],{},[337,1739,1740],{},"SparseFieldsets","), the configuration and the diagnostics of the request. ",[337,1743,501],{},[337,1745,504],{}," are read from the\nquery string only, as the specification defines them.",[353,1748,1749,358,1752,1755,1756,1759,1760,1763,1764,1767,1768,1771,1772,1775,1776,1779,1780,1783],{},[356,1750,1751],{},"Rendering engine",[337,1753,1754],{},"Rendering\\","): a ",[337,1757,1758],{},"DocumentBuilder"," assembles the document, a ",[337,1761,1762],{},"ResourceObjectRenderer"," renders\neach resource object through explicit stages (attributes, relationships, links, meta), an ",[337,1765,1766],{},"IncludedRegistry","\n(identity map ",[337,1769,1770],{},"type:id",") collects the included resources. Rendering keeps no state between two calls, a closure that\nis not requested by the sparse fieldset is never called, and ",[337,1773,1774],{},"included"," is built in linear time.\nAn application adds its own ",[337,1777,1778],{},"Rendering\\Stage","s in ",[337,1781,1782],{},"rendering.stages","; they run after those of the package on every\nresource object, primary or included.",[353,1785,1786,1789],{},[337,1787,1788],{},"JsonApiCollection::toDocumentMeta()",": document meta of a collection, winning over those of its resources.",[353,1791,1792,1798,1799,358,1802,397,1805,397,1808,397,1811,1813,1814,1817,1818,1821],{},[356,1793,1794,1797],{},[337,1795,1796],{},"jsonapi"," member"," in every document, configured in ",[337,1800,1801],{},"document.jsonapi",[337,1803,1804],{},"version",[337,1806,1807],{},"ext",[337,1809,1810],{},"profile",[337,1812,767],{},"):\n",[337,1815,1816],{},"{\"version\": \"1.1\"}"," by default, ",[337,1819,1820],{},"false"," to leave it out.",[353,1823,1824,397,1827,1830,1831,1833,1834,1837],{},[356,1825,1826],{},"Maximum include depth",[337,1828,1829],{},"include.max-depth"," (no limit by default): the ",[337,1832,966],{}," rule rejects a deeper path\n(",[337,1835,1836],{},"invalid_depth","), and nothing deeper is loaded nor rendered, even without validation.",[353,1839,1840,358,1844,1847,1848,1851,1852,1854,1855,1858,1859,323],{},[356,1841,1842],{},[337,1843,1509],{},[337,1845,1846],{},"APP_DEBUG"," by default): a value declared ",[337,1849,1850],{},"nullable(false)"," with no value to stand for\n",[337,1853,571],{}," (a date) throws a ",[337,1856,1857],{},"RenderingException"," naming the attribute, instead of rendering ",[337,1860,571],{},[353,1862,1863,1866],{},[337,1864,1865],{},"->truncate()"," on a float value truncates to its precision, towards zero, instead of rounding.",[353,1868,1869,1870,1873,1874,1877,1878,1881,1882,1885,1886,522],{},"The resource a collection collects is found as Laravel finds it, for its definition and for the validation rules:\n",[337,1871,1872],{},"#[Collects]"," (Laravel 13), ",[337,1875,1876],{},"$collects",", then the name of the collection (",[337,1879,1880],{},"UserCollection"," collects ",[337,1883,1884],{},"User"," or\n",[337,1887,1888],{},"UserResource",[353,1890,1891,1893,1894,1897,1898,1900],{},[337,1892,1102],{}," given a class that does not implement Laravel's ",[337,1895,1896],{},"Gate"," contract throws a ",[337,1899,1132],{}," instead of\nfailing on a method call.",[353,1902,1903,961,1906,1909,1910,1913,1914,1917,1918,1920,1921,397,1924,1927,1928,1930,1931,1934,1935,323],{},[356,1904,1905],{},"Meta of resource identifiers",[337,1907,1908],{},"->identifierMeta(fn($related) => [...])"," on a relationship (",[337,1911,1912],{},"identifierMeta()","\non ",[337,1915,1916],{},"Relationship",") renders a ",[337,1919,767],{}," in each identifier of its linkage (",[337,1922,1923],{},"data.meta",[337,1925,1926],{},"data[].meta","), for data of the\nlink itself such as a pivot. The ",[337,1929,1090],{}," of the relationship object is unchanged. ",[337,1932,1933],{},"RelationshipDefinition"," exposes\n",[337,1936,1937],{},"hasIdentifierMeta",[353,1939,1940,1943],{},[337,1941,1942],{},"Exceptions\\RenderingException",", thrown when a member that must be a JSON object would be rendered as a list.",[353,1945,1946,358,1949,397,1952,1955,1956,1959],{},[356,1947,1948],{},"Loading",[337,1950,1951],{},"Loading\\LoadPlanner",[337,1953,1954],{},"LoadPlan","): before rendering, the relations a document renders are loaded in\nbatch, computed from the definitions, the include and the sparse fieldsets: one ",[337,1957,1958],{},"loadMissing()"," per relation, per\nmodel class and per include level, on the whole collection. The linkage of a relationship that is not included no\nlonger runs one query per resource.",[353,1961,1962,961,1967,1970,1971,900,1974,1976,1977,468,1979,1982,1983,1985,1986,1989,1990,1992,1993,1996],{},[356,1963,1964],{},[337,1965,1966],{},"relationship.linkage",[337,1968,1969],{},"always"," (default, 1.x), ",[337,1972,1973],{},"loaded",[337,1975,1774],{},", for when a relationship that is not\nincluded renders its ",[337,1978,873],{},[337,1980,1981],{},"->linkage(Linkage::Loaded)"," sets it on one relationship; ",[337,1984,1933],{},"\nexposes it as ",[337,1987,1988],{},"linkage",".\nTwo relationships loading the same relation path with different ",[337,1991,1093],{}," constraints share the first one, with\na ",[337,1994,1995],{},"load-conflict"," diagnostic: a relation is loaded once per model.",[353,1998,1999,961,2002,2005,2006,892,2009,2012,2013,323],{},[356,2000,2001],{},"Server-side include",[337,2003,2004],{},"UserResource::make($user)->include('posts.comments')"," (and on a collection) includes paths\nin addition to the requested ones, carried by the context (",[337,2007,2008],{},"JsonApiContext::withInclude()",[337,2010,2011],{},"IncludeTree::merge()","). Replaces 1.x ",[337,2014,2015],{},"withInclude()",[353,2017,2018,961,2021,2024,2025,664,2028,2030,2031,323],{},[356,2019,2020],{},"Named relationship links",[337,2022,2023],{},"->links(self: …, related: …)"," on a relationship, each link a string or a closure\nreceiving the related resource; they win over the links of a closure, which stays the first argument. The\ndefinition records their names (",[337,2026,2027],{},"RelationshipDefinition::$namedLinks",[337,2029,1087],{}," without any link throws a\n",[337,2032,1132],{},[353,2034,2035,2038],{},[337,2036,2037],{},"->pivotMeta(['role'], 'pivot')"," on a relationship renders attributes of the pivot of each related model in the meta\nof its resource identifier.",[353,2040,808,2041,2044],{},[337,2042,2043],{},"filter-on-unloaded"," diagnostic when relationship filters run on a relation that is not loaded.",[353,2046,2047,961,2050,2053,2054,2057,2058,2061,2062,2065,2066,2068,2069,2071,2072,397,2075,2078],{},[356,2048,2049],{},"Polymorphic relationships",[337,2051,2052],{},"$this->morph([Post::class => PostResource::class, Video::class => VideoResource::class])"," (a ",[337,2055,2056],{},"morphTo","), ",[337,2059,2060],{},"$this->morphMany([...])",", or ",[337,2063,2064],{},"->morphs([...])"," on any relationship, render\neach related model with the resource of the first class of the map it is an instance of (a collection class stands\nfor the resource it collects; ",[337,2067,571],{}," items of a to-many are left out); a model of a class out of the map throws a\n",[337,2070,1857],{},". The definition exposes the map (",[337,2073,2074],{},"morphs",[337,2076,2077],{},"isPolymorphic()","), the validation rules accept an\ninclude or a fieldset one of the related resources has (path by path), and the related models are loaded resource\nby resource.",[353,2080,2081,961,2084,2087,2088,2057,2091,358,2093,2057,2096,2099,2100,2103,2104,397,2106,401,2108,2111,2112,2114,2115,397,2118,397,2121,397,2124,2127,2128,522],{},[356,2082,2083],{},"New value types",[337,2085,2086],{},"datetime()"," (the former ",[337,2089,2090],{},"date()",[337,2092,1177],{},[337,2094,2095],{},"H:i:s",[337,2097,2098],{},"decimal()"," (an exact decimal rendered as a\nstring, ",[337,2101,2102],{},"->scale(2)"," rounding half away from zero, no float on the way), ",[337,2105,1180],{},[337,2107,1183],{},[337,2109,2110],{},"json()"," (a JSON\nstring rendered decoded; an invalid one throws a ",[337,2113,1857],{},"). Each gives the definition a format\n(the PHP format of a date, ",[337,2116,2117],{},"decimal",[337,2119,2120],{},"uuid",[337,2122,2123],{},"ulid",[337,2125,2126],{},"json","), and is named as the items of an array (",[337,2129,2130],{},"->of('uuid')",[353,2132,2133,2136,2137,323],{},[337,2134,2135],{},"Value::valueFormat()",": the format a value type gives its definition, next to ",[337,2138,2139],{},"valueType()",[353,2141,2142,2145,2146,2149,2150,2152,2153,2156,2157,2159,2160,2163,2164,664,2167,2169,2170,2172,2173,2175],{},[356,2143,2144],{},"Value types of the application",": a ",[337,2147,2148],{},"Value"," subclass registered under a name (",[337,2151,1512],{},", or\n",[337,2154,2155],{},"JsonApi::valueType('money', MoneyValue::class)",") is written ",[337,2158,1213],{}," in a resource and named as the items\nof an array (",[337,2161,2162],{},"->of('money')",", as the types of the package: ",[337,2165,2166],{},"->of('integer')",[337,2168,1455],{}," is the\nregistry; a name taken by a resource method or a class that is not a ",[337,2171,2148],{}," throws an\n",[337,2174,1516],{}," at boot.",[353,2177,2178,2181,2182,397,2185,2187,2188,2190,2191,397,2194,2197,2198,892,2201,397,2204,2206,2207,2209,2210,2212,2213,2216,2217,397,2219,397,2222,2224,2225,774,2228,2231,2232,2234,2235,2238,2239,397,2242,2245,2246,362,2249,2251,2252,2255,2256,2258,2259,401,2261,2263,2264,323],{},[356,2179,2180],{},"Generics for static analysis",": with ",[337,2183,2184],{},"@extends JsonApiResource\u003CUser>",[337,2186,1120],{}," is a ",[337,2189,1884],{},", the\ndescriptors are ",[337,2192,2193],{},"ValueString\u003CUser>",[337,2195,2196],{},"RelationOne\u003CUser>","…, their closures (",[337,2199,2200],{},"$this->string(fn($user) => …)",[337,2202,2203],{},"->when(fn($request, $user) => …)",[337,2205,1166],{},") receive a ",[337,2208,1884],{},", and ",[337,2211,1488],{}," returns ",[337,2214,2215],{},"MissingValue|"," the type of\nits value. The hooks (",[337,2218,1112],{},[337,2220,2221],{},"toLinks()",[337,2223,757],{},"…) declare ",[337,2226,2227],{},"Relation\u003CT>",[337,2229,2230],{},"Value\u003CT>",";\n",[337,2233,2221],{}," accepts link objects; ",[337,2236,2237],{},"relationship()"," gives a ",[337,2240,2241],{},"Relationship\u003Cstatic>",[337,2243,2244],{},"collection()"," a\n",[337,2247,2248],{},"JsonApiCollection\u003Cstatic>",[337,2250,1099],{}," receives ",[337,2253,2254],{},"Filters",", whose ",[337,2257,1488],{}," accepts a closure typed on the related\nmodel; ",[337,2260,1170],{},[337,2262,1174],{}," accept a descriptor written for any model. Checked by PHPStan on\n",[337,2265,2266],{},"tests\u002FTypes",[353,2268,2269,961,2272,397,2274,397,2277,2279,2280,2283,2284,2287,2288,2291,2292,2295,2296,2299,2300,2303,2304,2306],{},[356,2270,2271],{},"Relationships without resource class",[337,2273,1070],{},[337,2275,2276],{},"$this->one('user')",[337,2278,1073],{}," on a resource\nrendering an Eloquent model guess the related resource as ",[337,2281,2282],{},"Model::toResource()"," does: the model of the resource\n(",[337,2285,2286],{},"#[JsonApiModel(Post::class)]",", otherwise ",[337,2289,2290],{},"App\\Http\\Resources\\PostResource"," → ",[337,2293,2294],{},"App\\Models\\Post","), the related model of\nits relation, then its ",[337,2297,2298],{},"#[UseResource]"," or its resource by convention. Guessed once, when compiled; a relationship\nthat cannot be guessed is an error of the definition. ",[337,2301,2302],{},"Relation::related()"," is ",[337,2305,571],{}," for them until resolved.",[353,2308,2309,961,2312,2315,2316,2319,2320,774,2322,2325,2326,1295,2329,2332,2333,401,2336,2339,2340,2342,2343,2345,2346,2348,2349,358,2352,2355,2356,2358,2359,2362,2363,2366,2367,2370,2371,358,2373,522],{},[356,2310,2311],{},"Links by route",[337,2313,2314],{},"#[JsonApiRoutes(self: 'posts.show')]"," on a resource generates ",[337,2317,2318],{},"links.self"," of its resource\nobjects, and ",[337,2321,2318],{},[337,2323,2324],{},"links.related"," of their relationships from the routes ",[337,2327,2328],{},"posts.relationships.{relationship}",[337,2330,2331],{},"posts.{relationship}"," when they exist (",[337,2334,2335],{},"relationship:",[337,2337,2338],{},"related:"," to name others, ",[337,2341,1820],{}," for none), also for\na relationship left out by ",[337,2344,1966],{},". The links declared by the resource win, even ",[337,2347,571],{},". The routes\nare recorded in ",[337,2350,2351],{},"ResourceDefinition::$routes",[337,2353,2354],{},"RouteNames","), also for a definition written by hand; ",[337,2357,1231],{},"\nfails when the ",[337,2360,2361],{},"self"," route does not exist (",[337,2364,2365],{},"missing-route","). The service provider puts\n",[337,2368,2369],{},"Laravel\\Rendering\\RouteLinksStage"," before the stages of ",[337,2372,1782],{},[337,2374,2375],{},"Configuration::prependRenderingStages()",[353,2377,2378,961,2381,2384,2385,2388,2389,522],{},[356,2379,2380],{},"Declarative type",[337,2382,2383],{},"#[JsonApiType('posts')]"," on a resource gives its type without overriding ",[337,2386,2387],{},"toType()",", whose\ndefault implementation returns it (an override can call ",[337,2390,2391],{},"parent::toType()",[353,2393,2394,552,2397,2400,2401,2404,2405,2408,2409,2057,2412,358,2415,2057,2418,384,2421,2424,2425,323],{},[356,2395,2396],{},"Type naming convention",[337,2398,2399],{},"type.naming",": the type of a resource that declares none, from its class name without the\n",[337,2402,2403],{},"Resource"," suffix: ",[337,2406,2407],{},"kebab-singular"," (default, ",[337,2410,2411],{},"blog-post",[337,2413,2414],{},"kebab-plural",[337,2416,2417],{},"blog-posts",[337,2419,2420],{},"snake-plural",[337,2422,2423],{},"blog_posts","), or a class implementing ",[337,2426,2427],{},"Configuration\\TypeNaming",[353,2429,2430,2435,2436,2439,2440,401,2442,2444,2445,892,2448,2451,2452,2455,2456,2459,2460,900,2462,2464,2465,2467,2468,2471,2472,2475,2476,323],{},[356,2431,2432],{},[337,2433,2434],{},"Http\\JsonApiFormRequest",": a form request declaring ",[337,2437,2438],{},"protected string $resource = PostResource::class;","\nvalidates the ",[337,2441,501],{},[337,2443,504],{}," query parameters against the definition of the resource (",[337,2446,2447],{},"Rules\\Includes",[337,2449,2450],{},"Rules\\Fields",", both ",[337,2453,2454],{},"nullable","), then the rules of its own ",[337,2457,2458],{},"rules()",": a rule keyed ",[337,2461,501],{},[337,2463,504],{}," replaces\nthe preconfigured one and stays ",[337,2466,2454],{},"; a nested key (",[337,2469,2470],{},"fields.*",") is added to it. Both parameters are read from the query string only: a member of the body\nwith the same name is neither validated nor returned by ",[337,2473,2474],{},"validated()",". A form request that names no resource throws\na ",[337,2477,1132],{},[353,2479,2480,2485,2486,961,2489,397,2492,2495,2496,774,2498,774,2501,892,2504,774,2507,2509,2510,358,2513,2516,2517,2520,2521,2523,2524,900,2526,2529,2530,2533],{},[356,2481,2482],{},[337,2483,2484],{},"JsonApiFormRequest::jsonApi()"," reads the resource object of a write request from the validated data, as an\n",[337,2487,2488],{},"Http\\ResourceDocument",[337,2490,2491],{},"type()",[337,2493,2494],{},"id()"," (a string), ",[337,2497,1286],{},[337,2499,2500],{},"attribute()",[337,2502,2503],{},"hasAttribute()",[337,2505,2506],{},"relationships()",[337,2508,2237],{}," (the linkage) \u002F ",[337,2511,2512],{},"hasRelationship()",[337,2514,2515],{},"true"," for a cleared to-one relationship),\n",[337,2518,2519],{},"ids()"," (the ids of a linkage, as strings) and ",[337,2522,1090],{},". A member without rule is missing from it, and so is a\nrelationship cleared (",[337,2525,571],{},[337,2527,2528],{},"[]",") unless its linkage (",[337,2531,2532],{},"data.relationships.tags.data",") has a rule of its own.",[353,2535,2536,358,2539,2542,2543,2546,2547,2550,2551,2554,2555,2558,2559,397,2562,2564,2565,2567,2568,2571,2572,2575,2576,2579,2580,2583,2584,2587,2588,358,2591,2057,2594,358,2597,2600,2601,774,2604,2607,2608,384,2611,2614,2615,2618,2619,2622,2623,358,2626,2629,2630,401,2633,2636,2637,2639],{},[356,2537,2538],{},"Error documents",[337,2540,2541],{},"Http\\Errors\\","): ",[337,2544,2545],{},"ErrorRenderers"," asks its ",[337,2548,2549],{},"ErrorRenderer","s by decreasing ",[337,2552,2553],{},"PRIORITY"," and\nrenders the exception with the first that supports it, as an ",[337,2556,2557],{},"ErrorDocument"," (status, headers, ",[337,2560,2561],{},"errors",[337,2563,767],{},", the\nconfigured ",[337,2566,1796],{}," member) served as ",[337,2569,2570],{},"application\u002Fvnd.api+json",". The renderers of the package:\n",[337,2573,2574],{},"ValidationErrorRenderer"," (its status, ",[337,2577,2578],{},"422"," by default, one error per message, ",[337,2581,2582],{},"source.parameter"," for a query\nparameter or a request without body, ",[337,2585,2586],{},"source.pointer"," for a member of the body; an exception with a response of its\nown is left to Laravel), ",[337,2589,2590],{},"AuthenticationErrorRenderer",[337,2592,2593],{},"401",[337,2595,2596],{},"AuthorizationErrorRenderer",[337,2598,2599],{},"403"," or the status\ngiven by ",[337,2602,2603],{},"denyWithStatus()",[337,2605,2606],{},"denyAsNotFound()",", without the default message then), ",[337,2609,2610],{},"ModelNotFoundErrorRenderer",[337,2612,2613],{},"404",", without the class of the model), ",[337,2616,2617],{},"HttpErrorRenderer"," (status and headers of the ",[337,2620,2621],{},"HttpException",") and\n",[337,2624,2625],{},"ThrowableErrorRenderer",[337,2627,2628],{},"500",", message and location in debug only). A message that is not UTF-8 is substituted. The exceptions Laravel prepares\n(",[337,2631,2632],{},"ModelNotFoundException",[337,2634,2635],{},"AuthorizationException"," made ",[337,2638,2621],{},"s) are recognized.",[353,2641,2642,2647,2648,358,2651,2654,2655,2657,2658,2661,2662,2665,2666,2668,2669,323],{},[356,2643,2644],{},[337,2645,2646],{},"JsonApi::renderErrors($exceptions, when: null)"," in ",[337,2649,2650],{},"bootstrap\u002Fapp.php",[337,2652,2653],{},"->withExceptions()",") renders the\nexceptions through the ",[337,2656,2545],{}," of the container, for the requests that expect JSON or those ",[337,2659,2660],{},"when"," accepts;\nan exception no renderer supports is rendered by Laravel. It is called after the ",[337,2663,2664],{},"render()"," callbacks of the\napplication, which run in their order of registration. The service provider binds the renderers of the package,\nwith the configured ",[337,2667,1796],{}," member and ",[337,2670,2671],{},"app.debug",[353,2673,2674,2679,2680,2682,2683,2686],{},[356,2675,2676],{},[337,2677,2678],{},"errors.renderers",": error renderers of the application, built by the container and asked with those of the\npackage by their ",[337,2681,2553],{}," (one of a higher priority replaces the renderer of the package for its exceptions);\nchecked at boot. ",[337,2684,2685],{},"ErrorRenderers::with()"," adds renderers to a copy.",[353,2688,2689,2692,2693,2695,2696,2699,2700,2703,2704,2707,2708,774,2710,2712,2713,2716,2717,2720,2721,2724,2725,2728,2729,2731],{},[356,2690,2691],{},"Content negotiation",": the ",[337,2694,1796],{}," route middleware (",[337,2697,2698],{},"Http\\Middleware\\NegotiateContent",") answers ",[337,2701,2702],{},"415"," to a\nJSON:API ",[337,2705,2706],{},"Content-Type"," with a parameter other than ",[337,2709,1807],{},[337,2711,1810],{}," or an unsupported extension, ",[337,2714,2715],{},"406"," to an\n",[337,2718,2719],{},"Accept"," whose every JSON:API media type is such or refused (",[337,2722,2723],{},"q=0","), and adds ",[337,2726,2727],{},"Vary: Accept"," to every response, its\nerrors included. An application alias ",[337,2730,1796],{}," is kept.",[353,2733,2734,2735,2737,2738,358,2740,2743],{},"The documents and error documents are served with the extensions and profiles of ",[337,2736,1801],{}," in their\n",[337,2739,2706],{},[337,2741,2742],{},"JsonApiObject::contentType()","), as the specification requires when an extension applies.",[353,2745,2746,552,2749,774,2752,2755,2756,2759,2760,2762,2763,774,2765,1125,2767,2769,2770,2773,2774,2777,2778,2780,2781,2783,2784,892,2787,2790,2791,2794,2795,2798,2799,2802],{},[356,2747,2748],{},"Interoperability with Laravel's native JSON:API.",[337,2750,2751],{},"one()",[337,2753,2754],{},"many()"," accept a native resource class\n(",[337,2757,2758],{},"Illuminate\\Http\\Resources\\JsonApi\\JsonApiResource","), a collection collecting one, or guess one (",[337,2761,2298],{},",\nthe naming convention), outside a morph map: its linkage is loaded in batch as any other, ",[337,2764,1087],{},[337,2766,1090],{},[337,2768,1912],{}," receive it; included, it is rendered as a leaf by its own ",[337,2771,2772],{},"resolve()",", with its ",[337,2775,2776],{},"fields[type]",",\nnever its relationships, and nothing is loaded nor included under it (the ",[337,2779,966],{}," rule rejects such a path; the\n",[337,2782,936],{}," rule accepts the fields of its type as they are, read without model, and a type no definition has when it\ncannot be). Its definition names the class (",[337,2785,2786],{},"RelationshipDefinition::$native",[337,2788,2789],{},"isNative()",") and relates no definition: ",[337,2792,2793],{},"$related"," is empty. ",[337,2796,2797],{},"RelationshipDefinition::to()"," builds the relationship\nto a resource, a collection or a native resource. A native ",[337,2800,2801],{},"JsonApiRequest"," renders as any request.",[353,2804,2805,2810,2811,384,2814,2816],{},[356,2806,2807],{},[337,2808,2809],{},"toId()",", the hook of Laravel's native resources, gives the identifier read by the default ",[337,2812,2813],{},"toIdentifier()",[337,2815,571],{}," by default: the model key).",[345,2818,1032],{"id":2819},"changed-1",[350,2821,2822,2835,2881,2889,2903,2909,2946,2975,2990,3015,3035,3045,3066,3087,3104,3117,3127,3138,3184,3191,3224,3234,3248,3256,3287,3297,3300,3332,3360,3371,3379,3398,3408,3424,3440,3456,3476,3511,3523,3541,3567,3572],{},[353,2823,2824,2827,2828,2831,2832,323],{},[356,2825,2826],{},"Breaking:"," the validation rules move from ",[337,2829,2830],{},"Ark4ne\\JsonApi\\Requests\\Rules"," to ",[337,2833,2834],{},"Ark4ne\\JsonApi\\Http\\Rules",[353,2836,2837,2839,2840,401,2842,2844,2845,401,2848,2851,2852,2855,2856,468,2859,2861,2862,2864,2865,2868,2869,2872,2873,2876,2877,2880],{},[356,2838,2826],{}," the messages of ",[337,2841,2450],{},[337,2843,2447],{}," are translations of the package,\n",[337,2846,2847],{},"jsonapi::validation.fields.*",[337,2849,2850],{},"jsonapi::validation.includes.*",", published by\n",[337,2853,2854],{},"vendor:publish --tag=jsonapi-lang",", instead of ",[337,2857,2858],{},"validation.custom.jsonapi.*",[337,2860,2447],{}," read the keys of\n",[337,2863,504],{},": its own keys are used now. ",[337,2866,2867],{},"\":resource\" doesn't exists."," is fixed in ",[337,2870,2871],{},"\":resource\" doesn't exist.",".\nBoth rules are ",[337,2874,2875],{},"final"," and keep no state between two values; ",[337,2878,2879],{},"Rules\\Traits\\UseTrans"," is removed.",[353,2882,2883,1642,2886,2888],{},[337,2884,2885],{},"array()->of(ValueStruct::class)",[337,2887,1132],{}," asking for an instance, when declared, instead of\nfailing on rendering (a struct needs its closure).",[353,2890,2891,2893,2894,2896,2897,900,2900,2902],{},[356,2892,2826],{}," requires PHP ",[337,2895,10],{}," and Laravel ",[337,2898,2899],{},"^12.46",[337,2901,74],{},". PHP 8.1 and 8.2, Laravel 10 and 11 are no longer\nsupported.",[353,2904,2905,2906,323],{},"Every source file declares ",[337,2907,2908],{},"strict_types=1",[353,2910,2911,552,2913,2915,2916,397,2919,2922,2923,358,2926,2929,2930,2933,2934,2936,2937,2940,2941,2943,2944,323],{},[356,2912,2826],{},[337,2914,1052],{}," renders a date without time (",[337,2917,2918],{},"Y-m-d",[337,2920,2921],{},"Values\\ValueDate","); a date and time is\n",[337,2924,2925],{},"$this->datetime()",[337,2927,2928],{},"Values\\ValueDateTime",", the former ",[337,2931,2932],{},"ValueDate","), whose default format is ",[337,2935,1506],{},"\n(ex-",[337,2938,2939],{},"describer.date",", which throws an ",[337,2942,1516],{}," when still set). A date value that is neither a date, a timestamp nor a string throws a ",[337,2945,1857],{},[353,2947,2948,2950,2951,2954,2955,397,2958,2954,2961,2964,2965,2968,2969,664,2972,2974],{},[356,2949,2826],{}," a float with a precision is rounded (",[337,2952,2953],{},"1.239"," gives ",[337,2956,2957],{},"1.24",[337,2959,2960],{},"-1.111",[337,2962,2963],{},"-1.11",") instead of floored\n(",[337,2966,2967],{},"1.15"," gave ",[337,2970,2971],{},"1.14",[337,2973,1865],{}," truncates towards zero.",[353,2976,2977,552,2979,2982,2983,2986,2987,2989],{},[356,2978,2826],{},[337,2980,2981],{},"enum()->of(State::class)"," casts a raw value through the enum (",[337,2984,2985],{},"tryFrom()"," for a backed enum, the\ncase name for a pure one) and throws a ",[337,2988,1857],{}," for what is not one of its cases.",[353,2991,2992,397,2994,397,2997,401,3000,3003,3004,961,3007,401,3009,3011,3012,3014],{},[337,2993,1102],{},[337,2995,2996],{},"whenLoaded()",[337,2998,2999],{},"whenPivotLoaded()",[337,3001,3002],{},"whenAppended()"," work on a resource that is not an Eloquent model\n(array, object) instead of throwing a ",[337,3005,3006],{},"TypeError",[337,3008,2996],{},[337,3010,2999],{}," read its attribute,\n",[337,3013,3002],{}," leaves the value out.",[353,3016,3017,3019,3020,3022,3023,3025,3026,3028,3029,3032,3033,323],{},[356,3018,2826],{}," a date declared ",[337,3021,1850],{}," renders ",[337,3024,571],{}," for ",[337,3027,571],{}," instead of ",[337,3030,3031],{},"1970-01-01T00:00:00+00:00",", or\nthrows with ",[337,3034,1509],{},[353,3036,3037,3038,3041,3042,3044],{},"A published ",[337,3039,3040],{},"config\u002Fjsonapi.php"," missing a nested key (",[337,3043,1509],{},") takes the default of the package for\nit: the package file is merged recursively, not only by top-level key.",[353,3046,3047,3049,3050,2209,3053,774,3056,3059,3060,468,3062,3065],{},[356,3048,2826],{}," the configuration is passed to the values: ",[337,3051,3052],{},"Value::value(mixed $of, Request $request, Configuration $configuration)",[337,3054,3055],{},"valueFor()",[337,3057,3058],{},"resolveFor()"," take an optional ",[337,3061,255],{},[337,3063,3064],{},"Support\\Config"," (static\nproperties set at boot) is removed.",[353,3067,3068,3069,3072,3073,3075,3076,3078,3079,774,3081,3083,3084,3086],{},"The links and meta of a relationship are resolved like the other members: a descriptor (",[337,3070,3071],{},"$this->integer(...)","), a\nclosure or a condition (",[337,3074,1488],{},") in them is rendered as its value instead of an empty object, as in\n",[337,3077,757],{},". The members of ",[337,3080,1090],{},[337,3082,1087],{}," are resolved against the resource, those of\n",[337,3085,1912],{}," against each related resource.",[353,3088,3089,3091,3092,397,3095,397,3097,892,3100,3103],{},[356,3090,2826],{}," descriptors are immutable: every fluent method (",[337,3093,3094],{},"->nullable()",[337,3096,688],{},[337,3098,3099],{},"->format()",[337,3101,3102],{},"->withLoad()","…) returns a copy. A descriptor modified without using the returned value is left unchanged.",[353,3105,3106,3108,3109,3112,3113,3116],{},[356,3107,2826],{}," the service provider is ",[337,3110,3111],{},"Ark4ne\\JsonApi\\Laravel\\JsonApiServiceProvider"," (was\n",[337,3114,3115],{},"Ark4ne\\JsonApi\\Providers\\LaravelJsonApiProvider","). Package discovery registers it.",[353,3118,3119,552,3121,3123,3124,3126],{},[356,3120,2826],{},[337,3122,3040],{}," is validated at boot: a value of the wrong type throws an\n",[337,3125,1516],{}," naming the key.",[353,3128,3129,3130,401,3132,3134,3135,3137],{},"The ",[337,3131,966],{},[337,3133,936],{}," validation rules and the eager-loads of the requested includes read the definitions.\n",[337,3136,936],{}," accepts the relationship names of a type; both rules accept a collection class.",[353,3139,3140,552,3142,3145,3146,3149,3150,397,3152,3154,3155,3157,3158,3161,3162,531,3165,468,3168,3170,3171,3173,3174,774,3177,3180,3181,2880],{},[356,3141,2826],{},[337,3143,3144],{},"JsonApiResource::toArray($request)"," returns the resource object only, and\n",[337,3147,3148],{},"JsonApiCollection::toArray($request)"," the list of resource objects; both are idempotent. The whole document\n(",[337,3151,873],{},[337,3153,1774],{},", document ",[337,3156,767],{},", pagination) is built by ",[337,3159,3160],{},"toResponse()",", which still merges ",[337,3163,3164],{},"with()",[337,3166,3167],{},"additional()",[337,3169,3164],{}," no longer returns ",[337,3172,1774],{}," nor the document meta. The ",[337,3175,3176],{},"$included",[337,3178,3179],{},"$minimal"," second\nargument of ",[337,3182,3183],{},"toArray()",[353,3185,3186,1261,3188,3190],{},[356,3187,2826],{},[337,3189,899],{}," of a resource object and of a resource identifier is always a string.",[353,3192,3193,3195,3196,3199,3200,3203,3204,397,3206,397,3208,401,3211,3213,3214,3216,3217,3220,3221,3223],{},[356,3194,2826],{}," an empty to-one relationship renders ",[337,3197,3198],{},"{\"data\": null}"," and an empty to-many ",[337,3201,3202],{},"{\"data\": []}","; a\nrelationship with neither data, links nor meta is left out; empty ",[337,3205,764],{},[337,3207,977],{},[337,3209,3210],{},"links",[337,3212,767],{},"\nare left out instead of rendered as ",[337,3215,2528],{},". A hook returning members without names (",[337,3218,3219],{},"return ['a', 'b'];",") throws a\n",[337,3222,1857],{}," instead of rendering a JSON list.",[353,3225,3226,552,3228,3230,3231,3233],{},[356,3227,2826],{},[337,3229,1774],{}," never repeats a primary resource and holds each ",[337,3232,1770],{}," once; a resource reached through\nseveral paths keeps the relationships rendered on each of them.",[353,3235,3236,552,3238,3240,3241,2831,3244,3247],{},[356,3237,2826],{},[337,3239,2776],{}," restricts the relationships of the type too, as the specification says. Set\n",[337,3242,3243],{},"fields.relationships",[337,3245,3246],{},"'keep'"," to render every relationship as 1.x did.",[353,3249,3250,3252,3253,3255],{},[356,3251,2826],{}," only the primary resources add document meta (",[337,3254,760],{},"), the included ones no longer do. In a\ncollection they are merged key by key, the first resource setting a key keeping it (1.x gathered the values of a\nshared key into a list).",[353,3257,3258,3260,3261,3263,3264,3267,3268,397,3270,3272,3273,774,3276,3279,3280,362,3282,401,3284,3286],{},[356,3259,2826],{}," without ",[337,3262,754],{},", the attributes of a model are read with ",[337,3265,3266],{},"attributesToArray()"," (loaded\nrelations are no longer rendered as attributes) and leave out its key, ",[337,3269,899],{},[337,3271,903],{}," and the foreign keys of the\n",[337,3274,3275],{},"BelongsTo",[337,3277,3278],{},"MorphTo"," relationships declared in ",[337,3281,1112],{},[337,3283,899],{},[337,3285,903],{}," are left out of an array too.",[353,3288,3289,3292,3293,3296],{},[337,3290,3291],{},"whenInFields()"," only marks a value: the renderer decides from the sparse fieldset. ",[337,3294,3295],{},"Value::valueFor()"," returns the\nvalue whatever the request.",[353,3298,3299],{},"Collections and other arrayables returned by a hook are rendered as plain arrays.",[353,3301,3302,552,3304,3307,3308,358,3310,3025,3313,3315,3316,468,3318,3321,3322,961,3324,3326,3327,961,3329,3331],{},[356,3303,2826],{},[337,3305,3306],{},"relationship.when-included"," is replaced by ",[337,3309,1966],{},[337,3311,3312],{},"'included'",[337,3314,2515],{},"); the old key\nthrows an ",[337,3317,1516],{},[337,3319,3320],{},"$autoWhenIncluded"," on a resource is still read (",[337,3323,2515],{},[337,3325,1096],{},"\non every relationship, ",[337,3328,1820],{},[337,3330,1969],{}," for those without their own linkage), and is now recorded in its\ndefinition.",[353,3333,3334,3336,3337,397,3339,3341,3342,362,3344,3347,3348,3351,3352,3355,3356,3359],{},[356,3335,2826],{}," a relationship read from a relation (",[337,3338,1070],{},[337,3340,1073],{}," without closure) loads it without\n",[337,3343,1093],{},[337,3345,3346],{},"withLoad(false)"," disables it. ",[337,3349,3350],{},"withLoad(true)"," loads the relation the relationship is read from\n(",[337,3353,3354],{},"one(PostResource::class, 'post')"," loads ",[337,3357,3358],{},"post","), no longer one named after the relationship.",[353,3361,3362,3364,3365,3367,3368,3370],{},[356,3363,2826],{}," a ",[337,3366,1093],{}," constraint applies to the linkage too, not only when the relationship is included: the\nlinkage and ",[337,3369,1774],{}," list the same resources.",[353,3372,3373,3375,3376,3378],{},[356,3374,2826],{}," a relationship with ",[337,3377,2996],{}," is not loaded for its linkage, but is loaded when included (1.x left\nit out unless the application had loaded it).",[353,3380,3381,552,3383,3385,3386,401,3388,3390,3391,3394,3395,522],{},[356,3382,2826],{},[337,3384,2254],{}," is immutable: ",[337,3387,1102],{},[337,3389,1488],{}," return a copy. The closure given to ",[337,3392,3393],{},"->filters()"," must\nreturn the filters it built (",[337,3396,3397],{},"fn(Filters $filters) => $filters->can('view')",[353,3399,3400,552,3402,3405,3406,522],{},[356,3401,2826],{},[337,3403,3404],{},"RelationshipDefinition::$related"," is a list of resource classes: one, or several for a polymorphic\nrelationship. Compiled definitions must be compiled again (",[337,3407,1651],{},[353,3409,3410,552,3412,3307,3415,358,3418,397,3421,3423],{},[356,3411,2826],{},[337,3413,3414],{},"RelationshipDefinition::$whenIncluded",[337,3416,3417],{},"$linkage",[337,3419,3420],{},"Linkage|null",[337,3422,571],{}," for the\nconfigured one), which the compilation no longer fills from the configuration.",[353,3425,3426,552,3428,3431,3432,3434,3435,1642,3437,3439],{},[356,3427,2826],{},[337,3429,3430],{},"toMeta()"," (document meta) is renamed ",[337,3433,760],{}," on resources and collections; a class still\ndeclaring ",[337,3436,3430],{},[337,3438,1132],{}," rather than losing its meta silently.",[353,3441,3442,552,3444,401,3447,3450,3451,401,3453,3455],{},[356,3443,2826],{},[337,3445,3446],{},"Relationship::withLinks()",[337,3448,3449],{},"withMeta()"," are renamed ",[337,3452,1087],{},[337,3454,1090],{},", as on the relationship\ndescriptors.",[353,3457,3458,552,3460,397,3463,397,3465,397,3467,397,3469,401,3471,3473,3474,323],{},[356,3459,2826],{},[337,3461,3462],{},"$this->uuid()",[337,3464,1183],{},[337,3466,2098],{},[337,3468,2110],{},[337,3470,1177],{},[337,3472,2086],{}," in a resource return a\nvalue descriptor instead of calling the method of that name on the model: call it on ",[337,3475,1120],{},[353,3477,3478,3480,3481,397,3484,397,3487,3490,3491,892,3493,397,3495,401,3498,3501,3502,362,3504,401,3507,3510],{},[356,3479,2826],{}," the descriptors (",[337,3482,3483],{},"RelationOne",[337,3485,3486],{},"RelationMany",[337,3488,3489],{},"ValueString"," and the other values), ",[337,3492,1916],{},[337,3494,2254],{},[337,3496,3497],{},"CallbackFilterRule",[337,3499,3500],{},"PolicyFilterRule"," are ",[337,3503,2875],{},[337,3505,3506],{},"Describer",[337,3508,3509],{},"Relation"," stay abstract roots,\nextended by the package only.",[353,3512,3513,552,3515,3517,3518,3028,3520,522],{},[356,3514,2826],{},[337,3516,2254],{}," is no longer generic (",[337,3519,2254],{},[337,3521,3522],{},"Filters\u003CPost>",[353,3524,3525,552,3527,3529,3530,3533,3534,397,3537,3540],{},[356,3526,2826],{},[337,3528,681],{}," calls a ",[337,3531,3532],{},"Closure"," member to read its value; another callable (",[337,3535,3536],{},"'strlen'",[337,3538,3539],{},"[$a, 'b']",")\nis rendered as it is.",[353,3542,808,3543,397,3546,900,3549,3552,3553,3556,3557,3559,3560,3563,3564,323],{},[337,3544,3545],{},"string()",[337,3547,3548],{},"integer()",[337,3550,3551],{},"float()"," value that cannot be cast (an array, an object that is not ",[337,3554,3555],{},"Stringable",")\nthrows a ",[337,3558,1857],{}," naming the expected type, instead of a PHP error or a silent ",[337,3561,3562],{},"0","\u002F",[337,3565,3566],{},"'Array'",[353,3568,3569,3570,323],{},"A resource whose identifier is neither an integer nor a string throws a ",[337,3571,1857],{},[353,3573,3574,3577,3578,3580,3581,3583],{},[337,3575,3576],{},"array()"," reads the items of a collection, an arrayable, an iterable, a ",[337,3579,1641],{}," or the properties of an\nobject, a scalar as the only item and ",[337,3582,571],{}," as none.",[345,3585,3587],{"id":3586},"fixed","Fixed",[350,3589,3590,3599],{},[353,3591,3592,3593,358,3595,3598],{},"A relationship given to ",[337,3594,681],{},[337,3596,3597],{},"PostResource::relationship(...)",") is left out when the condition fails; it\nwas rendered whatever the condition.",[353,3600,3601,3602,397,3604,3607,3608,3610,3611,323],{},"A condition (",[337,3603,1488],{},[337,3605,3606],{},"unless()",") may return any truthy value, as Laravel's ",[337,3609,1488],{},": a non-boolean result threw a\n",[337,3612,3006],{},[345,3614,1439],{"id":3615},"removed-1",[350,3617,3618,3635,3649,3658,3676,3682,3719,3737,3747,3754,3768,3777],{},[353,3619,3620,552,3622,397,3625,401,3628,3631,3632,3634],{},[356,3621,2826],{},[337,3623,3624],{},"JsonApiResource::schema()",[337,3626,3627],{},"JsonApiCollection::schema()",[337,3629,3630],{},"Resources\\Skeleton",": read\n",[337,3633,1562],{}," instead.",[353,3636,3637,552,3639,3642,3643,1885,3646,323],{},[356,3638,2826],{},[337,3640,3641],{},"Asserts\\AssertJsonApiResource",": run ",[337,3644,3645],{},"php artisan jsonapi:check",[337,3647,3648],{},"Testing\\ResourceAssertions::assertValid()",[353,3650,3651,3654,3655,323],{},[337,3652,3653],{},"Support\\FakeModel",", internal, replaced by ",[337,3656,3657],{},"Support\\Probe",[353,3659,3660,1261,3662,3665,3666,3669,3670,401,3673,323],{},[356,3661,2826],{},[337,3663,3664],{},"Resources\\Resourceable"," interface and ",[337,3667,3668],{},"Relationship::toArray()",": the engine reads\n",[337,3671,3672],{},"Rendering\\RenderableResource",[337,3674,3675],{},"Rendering\\RelationshipSource",[353,3677,3129,3678,3681],{},[337,3679,3680],{},"resolveResourceData()"," override (Laravel 12.45 fix), useless now that the rendering does not go through\nLaravel's resource response.",[353,3683,3684,3686,3687,397,3690,3693,3694,3697,3698,397,3701,397,3704,3707,3708,3711,3712,3714,3715,3718],{},[356,3685,2826],{}," the static helpers ",[337,3688,3689],{},"Support\\Includes",[337,3691,3692],{},"Support\\Fields"," (and their Octane ",[337,3695,3696],{},"RequestReceived"," listener),\n",[337,3699,3700],{},"Support\\With",[337,3702,3703],{},"Support\\Supported",[337,3705,3706],{},"Support\\Traits\\HasLocalCache"," and the deprecated\n",[337,3709,3710],{},"PrepareData::prepareData()",": the include and the sparse fieldsets of the request are in the ",[337,3713,790],{},". The\npolyfill of ",[337,3716,3717],{},"JsonResource::unless()"," is removed, Laravel's is used.",[353,3720,3721,552,3723,3726,3727,3729,3730,3732,3733,3736],{},[356,3722,2826],{},[337,3724,3725],{},"$preserveKeys"," on a resource: ",[337,3728,873],{}," is always a JSON list. ",[337,3731,2244],{}," returns a\n",[337,3734,3735],{},"JsonApiCollection"," instead of an anonymous subclass.",[353,3738,3739,552,3741,2303,3743,3746],{},[356,3740,2826],{},[337,3742,3551],{},[337,3744,3745],{},"protected",", like the other value helpers.",[353,3748,3129,3749,401,3751,3753],{},[337,3750,966],{},[337,3752,936],{}," rules parse the request as the rendering does: spaces and empty segments are ignored,\na fieldset that is not a string fails.",[353,3755,3756,552,3758,3761,3762,961,3765,3767],{},[356,3757,2826],{},[337,3759,3760],{},"ConditionallyLoadsAttributes::whenIncluded($request, $type, $value)"," is renamed\n",[337,3763,3764],{},"whenInIncludes($request, $relationship, $value)",[337,3766,1096],{}," is only the one of the relationships.",[353,3769,3770,3773,3774,323],{},[337,3771,3772],{},"JsonApiResource::requestedRelationshipsLoad()"," (internal), replaced by the ",[337,3775,3776],{},"LoadPlanner",[353,3778,3779,552,3781,3784,3785,3788,3789,397,3792,1295,3795,3798,3799,2209,3802,3804,3805,323],{},[356,3780,2826],{},[337,3782,3783],{},"Support\\Arr",", the ",[337,3786,3787],{},"Descriptors\\Descriptors"," trait, ",[337,3790,3791],{},"Descriptors\\Resolver",[337,3793,3794],{},"Traits\\HasRelationLoad",[337,3796,3797],{},"Descriptors\\Relations\\RelationMissing",", unused or internal: use Laravel's ",[337,3800,3801],{},"Arr",[337,3803,1093],{}," on the\ndescriptors and on ",[337,3806,1916],{},[325,3808,3810,3813],{"id":3809},"_191-2026-03-26",[329,3811,3812],{},"1.9.1"," — 2026-03-26",[345,3815,3587],{"id":3816},"fixed-1",[350,3818,3819],{},[353,3820,3821],{},"Deep includes: the included resources are deduplicated, and nested includes are filled recursively.",[325,3823,3825,3828],{"id":3824},"_190-2026-03-22",[329,3826,3827],{},"1.9.0"," — 2026-03-22",[345,3830,348],{"id":3831},"added-2",[350,3833,3834],{},[353,3835,3836],{},"Laravel 13 support.",[325,3838,3840,3843],{"id":3839},"_180-2026-03-10",[329,3841,3842],{},"1.8.0"," — 2026-03-10",[345,3845,348],{"id":3846},"added-3",[350,3848,3849],{},[353,3850,3851,3852,401,3854,3856],{},"Octane compliance: ",[337,3853,3692],{},[337,3855,3689],{}," can be flushed between requests.",[325,3858,3860,3863],{"id":3859},"_171-2026-01-13",[329,3861,3862],{},"1.7.1"," — 2026-01-13",[345,3865,348],{"id":3866},"added-4",[350,3868,3869],{},[353,3870,3871],{},"PHP 8.5 in the test matrix.",[325,3873,3875,3878],{"id":3874},"_170-2026-01-12",[329,3876,3877],{},"1.7.0"," — 2026-01-12",[345,3880,3587],{"id":3881},"fixed-2",[350,3883,3884],{},[353,3885,3886,3887,2303,3889,323],{},"Compatibility with the JSON:API support introduced by Laravel's HTTP resources (breaking change on their side):\n",[337,3888,754],{},[337,3890,3891],{},"public",[325,3893,3895,3878],{"id":3894},"_163-2026-01-12",[329,3896,3897],{},"1.6.3",[345,3899,1032],{"id":3900},"changed-2",[350,3902,3903],{},[353,3904,3905],{},"Laravel above 12.44 is not supported, because of compatibility issues.",[325,3907,3909,3912],{"id":3908},"_162-2025-12-08",[329,3910,3911],{},"1.6.2"," — 2025-12-08",[345,3914,3587],{"id":3915},"fixed-3",[350,3917,3918],{},[353,3919,3920,3921,323],{},"Simplified a return statement in ",[337,3922,3509],{},[325,3924,3926,3912],{"id":3925},"_161-2025-12-08",[329,3927,3928],{},"1.6.1",[345,3930,348],{"id":3931},"added-5",[350,3933,3934,3977],{},[353,3935,3936,3939,3940],{},[356,3937,3938],{},"Typed arrays",": the elements of an array attribute can be typed.\n",[350,3941,3942,3954,3959,3962,3974],{},[353,3943,3944,3947,3948,3950,3951,522],{},[337,3945,3946],{},"of()"," on the ",[337,3949,3576],{}," descriptor specifies the element type, as a descriptor instance or a class reference\n(",[337,3952,3953],{},"ValueString::class",[353,3955,3956,3958],{},[337,3957,1174],{}," is a shorter helper.",[353,3960,3961],{},"Nested typed arrays (multi-dimensional arrays) are supported.",[353,3963,3964,3965,397,3967,397,3970,3973],{},"Every conditional method works with them (",[337,3966,1488],{},[337,3968,3969],{},"whenNotNull()",[337,3971,3972],{},"whenFilled()","…).",[353,3975,3976],{},"The type cast is applied to every element (strings, integers, floats, booleans…).",[353,3978,3979,3980,3983],{},"Generic types on ",[337,3981,3982],{},"ValueEnum"," and the value descriptors.",[325,3985,3987,3990],{"id":3986},"_160-2025-10-16",[329,3988,3989],{},"1.6.0"," — 2025-10-16",[345,3992,1032],{"id":3993},"changed-3",[350,3995,3996],{},[353,3997,3998,3999,4002],{},"The validation rules implement Laravel's ",[337,4000,4001],{},"ValidationRule"," interface, and their error handling is improved.",[325,4004,4006,3990],{"id":4005},"_152-2025-10-16",[329,4007,4008],{},"1.5.2",[345,4010,348],{"id":4011},"added-6",[350,4013,4014],{},[353,4015,4016],{},"Relationship filters, to apply policies or any custom rule to the related resources.",[325,4018,4020,4023],{"id":4019},"_151-2025-05-08",[329,4021,4022],{},"1.5.1"," — 2025-05-08",[345,4025,348],{"id":4026},"added-7",[350,4028,4029],{},[353,4030,4031],{},"Laravel 12 support.",[325,4033,4035,4038],{"id":4034},"_150-2025-02-14",[329,4036,4037],{},"1.5.0"," — 2025-02-14",[345,4040,348],{"id":4041},"added-8",[350,4043,4044],{},[353,4045,4046],{},"Struct value type.",[325,4048,4050,4053],{"id":4049},"_146-2024-12-28",[329,4051,4052],{},"1.4.6"," — 2024-12-28",[345,4055,1032],{"id":4056},"changed-4",[350,4058,4059],{},[353,4060,4061],{},"PHP 8.4 support.",[345,4063,3587],{"id":4064},"fixed-4",[350,4066,4067],{},[353,4068,4069,4072],{},[337,4070,4071],{},"applyWhen"," behavior.",[325,4074,4076,4079],{"id":4075},"_145-2024-12-12",[329,4077,4078],{},"1.4.5"," — 2024-12-12",[345,4081,1032],{"id":4082},"changed-5",[350,4084,4085,4091],{},[353,4086,4087,4088,4090],{},"The condition of ",[337,4089,4071],{}," can be a closure.",[353,4092,4093],{},"CI: tests run on every supported Laravel version.",[325,4095,4097,4100],{"id":4096},"_144-2024-08-07",[329,4098,4099],{},"1.4.4"," — 2024-08-07",[345,4102,3587],{"id":4103},"fixed-5",[350,4105,4106],{},[353,4107,4108,4109,961,4112,4115,4116,323],{},"Typo in ",[337,4110,4111],{},"ToResponse",[337,4113,4114],{},"Content-type"," is now ",[337,4117,2706],{},[325,4119,4121,4124],{"id":4120},"_143-2024-08-06",[329,4122,4123],{},"1.4.3"," — 2024-08-06",[345,4126,348],{"id":4127},"added-9",[350,4129,4130],{},[353,4131,4132],{},"Laravel 11 support.",[345,4134,1439],{"id":4135},"removed-2",[350,4137,4138],{},[353,4139,4140,4142],{},[356,4141,2826],{}," Laravel 8 support.",[325,4144,4146,4149],{"id":4145},"_142-2023-11-24",[329,4147,4148],{},"1.4.2"," — 2023-11-24",[345,4151,3587],{"id":4152},"fixed-6",[350,4154,4155],{},[353,4156,4157,4158,522],{},"An exception was thrown when including a to-one relationship\n(",[311,4159,4162],{"href":4160,"rel":4161},"https:\u002F\u002Fgithub.com\u002FArk4ne\u002Flaravel-json-api\u002Fissues\u002F19",[315],"#19",[325,4164,4166,4169],{"id":4165},"_141-2023-06-21",[329,4167,4168],{},"1.4.1"," — 2023-06-21",[345,4171,3587],{"id":4172},"fixed-7",[350,4174,4175],{},[353,4176,4177,401,4180,4183],{},[337,4178,4179],{},"autoWhenHas",[337,4181,4182],{},"autoWhenIncluded"," no longer throw an exception.",[325,4185,4187,4190],{"id":4186},"_140-2023-06-01",[329,4188,4189],{},"1.4.0"," — 2023-06-01",[345,4192,348],{"id":4193},"added-10",[350,4195,4196,4199,4206,4212,4219],{},[353,4197,4198],{},"Enums in values.",[353,4200,4201,4202,4205],{},"Automatic ",[337,4203,4204],{},"whenHas"," check on attributes.",[353,4207,4201,4208,4211],{},[337,4209,4210],{},"whenIncluded"," on relationships.",[353,4213,4214,4215,4218],{},"A polyfill for the ",[337,4216,4217],{},"unless"," method.",[353,4220,4221,4223],{},[337,4222,4204],{}," is overridden to support non-Eloquent models.",[345,4225,1439],{"id":4226},"removed-3",[350,4228,4229],{},[353,4230,4231,4233],{},[356,4232,2826],{}," PHP 8.0 support.",[325,4235,4237,4240],{"id":4236},"_138-2023-03-28",[329,4238,4239],{},"1.3.8"," — 2023-03-28",[345,4242,3587],{"id":4243},"fixed-8",[350,4245,4246],{},[353,4247,808,4248,4250],{},[337,4249,504],{}," input that is not an array is handled.",[325,4252,4254,4257],{"id":4253},"_137-2023-02-18",[329,4255,4256],{},"1.3.7"," — 2023-02-18",[345,4259,348],{"id":4260},"added-11",[350,4262,4263],{},[353,4264,4265],{},"Laravel 10 support.",[325,4267,4269,4272],{"id":4268},"_136-2023-02-04",[329,4270,4271],{},"1.3.6"," — 2023-02-04",[345,4274,3587],{"id":4275},"fixed-9",[350,4277,4278],{},[353,4279,4280,4282],{},[337,4281,738],{}," and the descriptors support any array or object.",[325,4284,4286,4289],{"id":4285},"_135-2023-02-03",[329,4287,4288],{},"1.3.5"," — 2023-02-03",[345,4291,3587],{"id":4292},"fixed-10",[350,4294,4295],{},[353,4296,4297,4299],{},[337,4298,1452],{}," accepts a mixed resource.",[325,4301,4303,4289],{"id":4302},"_134-2023-02-03",[329,4304,4305],{},"1.3.4",[345,4307,3587],{"id":4308},"fixed-11",[350,4310,4311],{},[353,4312,4313,4299],{},[337,4314,1452],{},[325,4316,4318,4321],{"id":4317},"_133-2023-01-17",[329,4319,4320],{},"1.3.3"," — 2023-01-17",[345,4323,3587],{"id":4324},"fixed-12",[350,4326,4327],{},[353,4328,4329],{},"PHPStan annotations of the descriptors.",[325,4331,4333,4336],{"id":4332},"_132-2023-01-16",[329,4334,4335],{},"1.3.2"," — 2023-01-16",[345,4338,1032],{"id":4339},"changed-6",[350,4341,4342],{},[353,4343,4344],{},"The relationships loaded automatically are better included.",[325,4346,4348,4351],{"id":4347},"_131-2022-12-26",[329,4349,4350],{},"1.3.1"," — 2022-12-26",[345,4353,3587],{"id":4354},"fixed-13",[350,4356,4357],{},[353,4358,4359,4360,323],{},"Default value of ",[337,4361,4362],{},"Relationship::whenIncluded",[325,4364,4366,4351],{"id":4365},"_130-2022-12-26",[329,4367,4368],{},"1.3.0",[345,4370,348],{"id":4371},"added-12",[350,4373,4374],{},[353,4375,4376],{},"Relationships are loaded automatically.",[325,4378,4380,4383],{"id":4379},"_121-2022-12-19",[329,4381,4382],{},"1.2.1"," — 2022-12-19",[345,4385,3587],{"id":4386},"fixed-14",[350,4388,4389],{},[353,4390,4391],{},"Merging values no longer replaces concrete values with missing values.",[325,4393,4395,4398],{"id":4394},"_120-2022-09-27",[329,4396,4397],{},"1.2.0"," — 2022-09-27",[345,4400,348],{"id":4401},"added-13",[350,4403,4404,4411],{},[353,4405,4406,4407,397,4409,3973],{},"The described notation (",[337,4408,1046],{},[337,4410,1070],{},[353,4412,4413,4415,4416,4419],{},[337,4414,4071],{},": unlike ",[337,4417,4418],{},"mergeWhen",", it keeps the keys even when the condition is not met.",[345,4421,1032],{"id":4422},"changed-7",[350,4424,4425],{},[353,4426,4427,1817,4429,4432],{},[356,4428,2826],{},[337,4430,4431],{},"Resources\\Concerns\\Identifier::toType"," computes the type from the resource class instead\nof the model class.",[325,4434,4436,4439],{"id":4435},"_1110-2022-09-11",[329,4437,4438],{},"1.1.10"," — 2022-09-11",[345,4441,348],{"id":4442},"added-14",[350,4444,4445],{},[353,4446,4447],{},"Conditionally loaded fields.",[325,4449,4451,4454],{"id":4450},"_119-2022-06-09",[329,4452,4453],{},"1.1.9"," — 2022-06-09",[345,4456,3587],{"id":4457},"fixed-15",[350,4459,4460],{},[353,4461,4462,4465,4466,401,4468,323],{},[337,4463,4464],{},"JsonApiResource::toArray"," no longer filters on ",[337,4467,903],{},[337,4469,899],{},[325,4471,4473,4476],{"id":4472},"_118-2022-06-01",[329,4474,4475],{},"1.1.8"," — 2022-06-01",[345,4478,348],{"id":4479},"added-15",[350,4481,4482],{},[353,4483,4484,4487,4488,323],{},[337,4485,4486],{},"Skeleton",": the skeleton of a ",[337,4489,738],{},[345,4491,1032],{"id":4492},"changed-8",[350,4494,4495],{},[353,4496,4497,401,4500,1080,4503,323],{},[337,4498,4499],{},"Resources\\Schema::schema",[337,4501,4502],{},"Resources\\SchemaCollection::schema",[337,4504,4486],{},[345,4506,4508],{"id":4507},"deprecated","Deprecated",[350,4510,4511],{},[353,4512,4513,4515,4516,323],{},[337,4514,3700],{},", replaced by ",[337,4517,3783],{},[345,4519,3587],{"id":4520},"fixed-16",[350,4522,4523,4528],{},[353,4524,4525,4527],{},[337,4526,4464],{}," returns a true deep array.",[353,4529,4530,4532,4533,4535],{},[337,4531,3689],{}," when the request has an empty ",[337,4534,501],{}," parameter.",[325,4537,4539,4542],{"id":4538},"_117-2022-05-11",[329,4540,4541],{},"1.1.7"," — 2022-05-11",[345,4544,3587],{"id":4545},"fixed-17",[350,4547,4548],{},[353,4549,4550,4551,4554],{},"Request rules: ",[337,4552,4553],{},"$failures"," was not initialized.",[325,4556,4558,4542],{"id":4557},"_116-2022-05-11",[329,4559,4560],{},"1.1.6",[345,4562,3587],{"id":4563},"fixed-18",[350,4565,4566],{},[353,4567,4568],{},"Request rules: the type of the value is checked before asserting.",[325,4570,4572,4575],{"id":4571},"_115-2022-04-28",[329,4573,4574],{},"1.1.5"," — 2022-04-28",[345,4577,3587],{"id":4578},"fixed-19",[350,4580,4581],{},[353,4582,4583,4586],{},[337,4584,4585],{},"Relationships::mapRelationships"," when the data is empty.",[325,4588,4590,4593],{"id":4589},"_114-2022-04-27",[329,4591,4592],{},"1.1.4"," — 2022-04-27",[345,4595,1032],{"id":4596},"changed-9",[350,4598,4599,4602,4605],{},[353,4600,4601],{},"PHPStan level 6 compliant.",[353,4603,4604],{},"The schema safely instantiates its class to build the structure.",[353,4606,4607],{},"Relationships can be conditional.",[345,4609,3587],{"id":4610},"fixed-20",[350,4612,4613],{},[353,4614,4615],{},"The schema handles the attributes correctly.",[325,4617,4619,4622],{"id":4618},"_113-2022-04-26",[329,4620,4621],{},"1.1.3"," — 2022-04-26",[345,4624,348],{"id":4625},"added-16",[350,4627,4628],{},[353,4629,4630,4633],{},[337,4631,4632],{},"Includes::includes"," returns the remaining includes of the current resource.",[345,4635,3587],{"id":4636},"fixed-21",[350,4638,4639],{},[353,4640,4641,739,4644,4647,4648,522],{},[337,4642,4643],{},"FakeModel",[337,4645,4646],{},"ArrayAccess"," correctly (missing return type on ",[337,4649,4650],{},"offsetGet",[325,4652,4654,4657],{"id":4653},"_112-2022-04-25",[329,4655,4656],{},"1.1.2"," — 2022-04-25",[345,4659,3587],{"id":4660},"fixed-22",[350,4662,4663],{},[353,4664,4665],{},"PHPStan annotations of the rules.",[325,4667,4669,4657],{"id":4668},"_111-2022-04-25",[329,4670,4671],{},"1.1.1",[345,4673,3587],{"id":4674},"fixed-23",[350,4676,4677],{},[353,4678,3129,4679,4681,4682,323],{},[337,4680,2403],{}," namespace is renamed ",[337,4683,136],{},[325,4685,4687,4690],{"id":4686},"_110-2022-04-22",[329,4688,4689],{},"1.1.0"," — 2022-04-22",[345,4692,348],{"id":4693},"added-17",[350,4695,4696],{},[353,4697,4698,4699,323],{},"Request validation rules ",[337,4700,4701],{},"Requests\\Rules\\{Includes, Fields}",[345,4703,1032],{"id":4704},"changed-10",[350,4706,4707],{},[353,4708,4709,4712],{},[337,4710,4711],{},"Support\\Includes::get()"," is improved, and its caching is disabled.",[325,4714,4716,4719],{"id":4715},"_102-2022-04-21",[329,4717,4718],{},"1.0.2"," — 2022-04-21",[345,4721,3587],{"id":4722},"fixed-24",[350,4724,4725,4732],{},[353,4726,4727,2212,4729,323],{},[337,4728,754],{},[337,4730,4731],{},"array\u003Cstring, Closure|mixed>",[353,4733,4734,4735,323],{},"The constructors are no longer ",[337,4736,2875],{},[325,4738,4740,4719],{"id":4739},"_101-2022-04-21",[329,4741,4742],{},"1.0.1",[345,4744,348],{"id":4745},"added-18",[350,4747,4748],{},[353,4749,3979,4750,401,4752,323],{},[337,4751,738],{},[337,4753,3735],{},[325,4755,4757,4719],{"id":4756},"_100-2022-04-21",[329,4758,4759],{},"1.0.0",[345,4761,348],{"id":4762},"added-19",[350,4764,4765,4778],{},[353,4766,3129,4767,4770,4771,476,4774,401,4776,323],{},[337,4768,4769],{},"Schema"," trait implements ",[337,4772,4773],{},"schema()",[337,4775,738],{},[337,4777,3735],{},[353,4779,4780,4783,4784,522],{},[337,4781,4782],{},"Relationize::relationship()"," creates a relationship for a resource\n(",[337,4785,4786],{},"PostResource::relationship(fn() => $this->posts)",[345,4788,1032],{"id":4789},"changed-11",[350,4791,4792,4921,4931,4954],{},[353,4793,4794,4796,4797,4799,4800],{},[356,4795,2826],{}," the signature of the ",[337,4798,1916],{}," constructor:",[4801,4802,4807],"pre",{"className":4803,"code":4804,"language":4805,"meta":4806,"style":4806},"language-php shiki shiki-themes material-theme-lighter github-light github-dark","public function __construct(\n    protected string $resource, \u002F\u002F class-string of the resource\n    protected Closure $value,   \u002F\u002F MUST be a closure returning the actual value\n    protected ?Closure $links = null,\n    protected ?Closure $meta = null,\n)\n","php","",[337,4808,4809,4827,4851,4870,4895,4915],{"__ignoreMap":4806},[329,4810,4813,4816,4819,4823],{"class":4811,"line":4812},"line",1,[329,4814,3891],{"class":4815},"sbsja",[329,4817,4818],{"class":4815}," function",[329,4820,4822],{"class":4821},"sptTA"," __construct",[329,4824,4826],{"class":4825},"sP7_E","(\n",[329,4828,4830,4833,4837,4840,4844,4847],{"class":4811,"line":4829},2,[329,4831,4832],{"class":4815},"    protected",[329,4834,4836],{"class":4835},"sw1J6"," string",[329,4838,4839],{"class":4825}," $",[329,4841,4843],{"class":4842},"su5hD","resource",[329,4845,4846],{"class":4825},",",[329,4848,4850],{"class":4849},"sutJx"," \u002F\u002F class-string of the resource\n",[329,4852,4854,4856,4860,4862,4865,4867],{"class":4811,"line":4853},3,[329,4855,4832],{"class":4815},[329,4857,4859],{"class":4858},"sZMiF"," Closure",[329,4861,4839],{"class":4825},[329,4863,4864],{"class":4842},"value",[329,4866,4846],{"class":4825},[329,4868,4869],{"class":4849},"   \u002F\u002F MUST be a closure returning the actual value\n",[329,4871,4873,4875,4879,4881,4883,4886,4889,4893],{"class":4811,"line":4872},4,[329,4874,4832],{"class":4815},[329,4876,4878],{"class":4877},"smGrS"," ?",[329,4880,3532],{"class":4858},[329,4882,4839],{"class":4825},[329,4884,4885],{"class":4842},"links ",[329,4887,4888],{"class":4877},"=",[329,4890,4892],{"class":4891},"s39Yj"," null",[329,4894,892],{"class":4825},[329,4896,4898,4900,4902,4904,4906,4909,4911,4913],{"class":4811,"line":4897},5,[329,4899,4832],{"class":4815},[329,4901,4878],{"class":4877},[329,4903,3532],{"class":4858},[329,4905,4839],{"class":4825},[329,4907,4908],{"class":4842},"meta ",[329,4910,4888],{"class":4877},[329,4912,4892],{"class":4891},[329,4914,892],{"class":4825},[329,4916,4918],{"class":4811,"line":4917},6,[329,4919,4920],{"class":4825},")\n",[353,4922,4923,4925,4926,401,4928,4930],{},[356,4924,2826],{}," the constructors of ",[337,4927,738],{},[337,4929,3735],{}," cannot be overridden.",[353,4932,4933,552,4935,552,4938,4941,4942,2209,4945,4948,4941,4951,323],{},[356,4934,2826],{},[337,4936,4937],{},"JsonApiResource::toAttributes",[356,4939,4940],{},"should"," return an ",[337,4943,4944],{},"array\u003Cstring, Closure>",[337,4946,4947],{},"toRelationships",[356,4949,4950],{},"must",[337,4952,4953],{},"array\u003Cstring, Relationship>",[353,4955,4956,4958,4959,4962,4963,3028,4965,4967],{},[356,4957,2826],{}," the second parameter of ",[337,4960,4961],{},"Resourceable::toArray"," defaults to ",[337,4964,2515],{},[337,4966,1820],{},", and its\nmeaning is inverted.",[345,4969,1439],{"id":4970},"removed-4",[350,4972,4973],{},[353,4974,4975,552,4977,323],{},[356,4976,2826],{},[337,4978,4979],{},"Relationize::asRelationship",[4981,4982,4983],"style",{},"html pre.shiki code .sbsja, html code.shiki .sbsja{--shiki-light:#9C3EDA;--shiki-default:#D73A49;--shiki-dark:#F97583}html pre.shiki code .sptTA, html code.shiki .sptTA{--shiki-light:#6182B8;--shiki-default:#005CC5;--shiki-dark:#79B8FF}html pre.shiki code .sP7_E, html code.shiki .sP7_E{--shiki-light:#39ADB5;--shiki-default:#24292E;--shiki-dark:#E1E4E8}html pre.shiki code .sw1J6, html code.shiki .sw1J6{--shiki-light:#F76D47;--shiki-default:#D73A49;--shiki-dark:#F97583}html pre.shiki code .su5hD, html code.shiki .su5hD{--shiki-light:#90A4AE;--shiki-default:#24292E;--shiki-dark:#E1E4E8}html pre.shiki code .sutJx, html code.shiki .sutJx{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#6A737D;--shiki-default-font-style:inherit;--shiki-dark:#6A737D;--shiki-dark-font-style:inherit}html pre.shiki code .sZMiF, html code.shiki .sZMiF{--shiki-light:#E2931D;--shiki-default:#005CC5;--shiki-dark:#79B8FF}html pre.shiki code .smGrS, html code.shiki .smGrS{--shiki-light:#39ADB5;--shiki-default:#D73A49;--shiki-dark:#F97583}html pre.shiki code .s39Yj, html code.shiki .s39Yj{--shiki-light:#39ADB5;--shiki-default:#005CC5;--shiki-dark:#79B8FF}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":4806,"searchDepth":4853,"depth":4853,"links":4985},[4986,4992,4999,5003,5007,5011,5015,5019,5023,5027,5031,5035,5039,5043,5047,5052,5056,5060,5065,5069,5073,5078,5082,5086,5090,5094,5098,5102,5106,5110,5114,5118,5123,5127,5131,5138,5142,5146,5150,5155,5160,5164,5168,5173,5177,5181],{"id":327,"depth":4829,"text":4987,"children":4988},"3.0.0 - 2026-11-18",[4989,4990,4991],{"id":347,"depth":4853,"text":348},{"id":1031,"depth":4853,"text":1032},{"id":1438,"depth":4853,"text":1439},{"id":1545,"depth":4829,"text":4993,"children":4994},"2.0.0 — 2026-11-03",[4995,4996,4997,4998],{"id":1552,"depth":4853,"text":348},{"id":2819,"depth":4853,"text":1032},{"id":3586,"depth":4853,"text":3587},{"id":3615,"depth":4853,"text":1439},{"id":3809,"depth":4829,"text":5000,"children":5001},"1.9.1 — 2026-03-26",[5002],{"id":3816,"depth":4853,"text":3587},{"id":3824,"depth":4829,"text":5004,"children":5005},"1.9.0 — 2026-03-22",[5006],{"id":3831,"depth":4853,"text":348},{"id":3839,"depth":4829,"text":5008,"children":5009},"1.8.0 — 2026-03-10",[5010],{"id":3846,"depth":4853,"text":348},{"id":3859,"depth":4829,"text":5012,"children":5013},"1.7.1 — 2026-01-13",[5014],{"id":3866,"depth":4853,"text":348},{"id":3874,"depth":4829,"text":5016,"children":5017},"1.7.0 — 2026-01-12",[5018],{"id":3881,"depth":4853,"text":3587},{"id":3894,"depth":4829,"text":5020,"children":5021},"1.6.3 — 2026-01-12",[5022],{"id":3900,"depth":4853,"text":1032},{"id":3908,"depth":4829,"text":5024,"children":5025},"1.6.2 — 2025-12-08",[5026],{"id":3915,"depth":4853,"text":3587},{"id":3925,"depth":4829,"text":5028,"children":5029},"1.6.1 — 2025-12-08",[5030],{"id":3931,"depth":4853,"text":348},{"id":3986,"depth":4829,"text":5032,"children":5033},"1.6.0 — 2025-10-16",[5034],{"id":3993,"depth":4853,"text":1032},{"id":4005,"depth":4829,"text":5036,"children":5037},"1.5.2 — 2025-10-16",[5038],{"id":4011,"depth":4853,"text":348},{"id":4019,"depth":4829,"text":5040,"children":5041},"1.5.1 — 2025-05-08",[5042],{"id":4026,"depth":4853,"text":348},{"id":4034,"depth":4829,"text":5044,"children":5045},"1.5.0 — 2025-02-14",[5046],{"id":4041,"depth":4853,"text":348},{"id":4049,"depth":4829,"text":5048,"children":5049},"1.4.6 — 2024-12-28",[5050,5051],{"id":4056,"depth":4853,"text":1032},{"id":4064,"depth":4853,"text":3587},{"id":4075,"depth":4829,"text":5053,"children":5054},"1.4.5 — 2024-12-12",[5055],{"id":4082,"depth":4853,"text":1032},{"id":4096,"depth":4829,"text":5057,"children":5058},"1.4.4 — 2024-08-07",[5059],{"id":4103,"depth":4853,"text":3587},{"id":4120,"depth":4829,"text":5061,"children":5062},"1.4.3 — 2024-08-06",[5063,5064],{"id":4127,"depth":4853,"text":348},{"id":4135,"depth":4853,"text":1439},{"id":4145,"depth":4829,"text":5066,"children":5067},"1.4.2 — 2023-11-24",[5068],{"id":4152,"depth":4853,"text":3587},{"id":4165,"depth":4829,"text":5070,"children":5071},"1.4.1 — 2023-06-21",[5072],{"id":4172,"depth":4853,"text":3587},{"id":4186,"depth":4829,"text":5074,"children":5075},"1.4.0 — 2023-06-01",[5076,5077],{"id":4193,"depth":4853,"text":348},{"id":4226,"depth":4853,"text":1439},{"id":4236,"depth":4829,"text":5079,"children":5080},"1.3.8 — 2023-03-28",[5081],{"id":4243,"depth":4853,"text":3587},{"id":4253,"depth":4829,"text":5083,"children":5084},"1.3.7 — 2023-02-18",[5085],{"id":4260,"depth":4853,"text":348},{"id":4268,"depth":4829,"text":5087,"children":5088},"1.3.6 — 2023-02-04",[5089],{"id":4275,"depth":4853,"text":3587},{"id":4285,"depth":4829,"text":5091,"children":5092},"1.3.5 — 2023-02-03",[5093],{"id":4292,"depth":4853,"text":3587},{"id":4302,"depth":4829,"text":5095,"children":5096},"1.3.4 — 2023-02-03",[5097],{"id":4308,"depth":4853,"text":3587},{"id":4317,"depth":4829,"text":5099,"children":5100},"1.3.3 — 2023-01-17",[5101],{"id":4324,"depth":4853,"text":3587},{"id":4332,"depth":4829,"text":5103,"children":5104},"1.3.2 — 2023-01-16",[5105],{"id":4339,"depth":4853,"text":1032},{"id":4347,"depth":4829,"text":5107,"children":5108},"1.3.1 — 2022-12-26",[5109],{"id":4354,"depth":4853,"text":3587},{"id":4365,"depth":4829,"text":5111,"children":5112},"1.3.0 — 2022-12-26",[5113],{"id":4371,"depth":4853,"text":348},{"id":4379,"depth":4829,"text":5115,"children":5116},"1.2.1 — 2022-12-19",[5117],{"id":4386,"depth":4853,"text":3587},{"id":4394,"depth":4829,"text":5119,"children":5120},"1.2.0 — 2022-09-27",[5121,5122],{"id":4401,"depth":4853,"text":348},{"id":4422,"depth":4853,"text":1032},{"id":4435,"depth":4829,"text":5124,"children":5125},"1.1.10 — 2022-09-11",[5126],{"id":4442,"depth":4853,"text":348},{"id":4450,"depth":4829,"text":5128,"children":5129},"1.1.9 — 2022-06-09",[5130],{"id":4457,"depth":4853,"text":3587},{"id":4472,"depth":4829,"text":5132,"children":5133},"1.1.8 — 2022-06-01",[5134,5135,5136,5137],{"id":4479,"depth":4853,"text":348},{"id":4492,"depth":4853,"text":1032},{"id":4507,"depth":4853,"text":4508},{"id":4520,"depth":4853,"text":3587},{"id":4538,"depth":4829,"text":5139,"children":5140},"1.1.7 — 2022-05-11",[5141],{"id":4545,"depth":4853,"text":3587},{"id":4557,"depth":4829,"text":5143,"children":5144},"1.1.6 — 2022-05-11",[5145],{"id":4563,"depth":4853,"text":3587},{"id":4571,"depth":4829,"text":5147,"children":5148},"1.1.5 — 2022-04-28",[5149],{"id":4578,"depth":4853,"text":3587},{"id":4589,"depth":4829,"text":5151,"children":5152},"1.1.4 — 2022-04-27",[5153,5154],{"id":4596,"depth":4853,"text":1032},{"id":4610,"depth":4853,"text":3587},{"id":4618,"depth":4829,"text":5156,"children":5157},"1.1.3 — 2022-04-26",[5158,5159],{"id":4625,"depth":4853,"text":348},{"id":4636,"depth":4853,"text":3587},{"id":4653,"depth":4829,"text":5161,"children":5162},"1.1.2 — 2022-04-25",[5163],{"id":4660,"depth":4853,"text":3587},{"id":4668,"depth":4829,"text":5165,"children":5166},"1.1.1 — 2022-04-25",[5167],{"id":4674,"depth":4853,"text":3587},{"id":4686,"depth":4829,"text":5169,"children":5170},"1.1.0 — 2022-04-22",[5171,5172],{"id":4693,"depth":4853,"text":348},{"id":4704,"depth":4853,"text":1032},{"id":4715,"depth":4829,"text":5174,"children":5175},"1.0.2 — 2022-04-21",[5176],{"id":4722,"depth":4853,"text":3587},{"id":4739,"depth":4829,"text":5178,"children":5179},"1.0.1 — 2022-04-21",[5180],{"id":4745,"depth":4853,"text":348},{"id":4756,"depth":4829,"text":5182,"children":5183},"1.0.0 — 2022-04-21",[5184,5185,5186],{"id":4762,"depth":4853,"text":348},{"id":4789,"depth":4853,"text":1032},{"id":4970,"depth":4853,"text":1439},"md",{},true,"# Changelog\n\nAll notable changes to this project are documented in this file.\n\nThe format is based on [Keep a Changelog](https:\u002F\u002Fkeepachangelog.com\u002Fen\u002F1.1.0\u002F), and this project adheres to\n[Semantic Versioning](https:\u002F\u002Fsemver.org\u002Fspec\u002Fv2.0.0.html).\n\n## [3.0.0] - 2026-11-18\n\n3.0: API revisions, Stripe-style, and typed values built on `ark4ne\u002Flaravel-api-revisions` 1.0\n(`docs\u002Frfc\u002Fapi-revisions-integration.md`). Changes are listed against 2.0.0: 2.1.0 was never released.\n\n### Added\n\n- **API revisions** (`docs\u002Fsite\u002F4.revisions\u002F`; `docs\u002Farchitecture.md`): each client is pinned on a dated revision of\n  the API, and a resource declares only what changed. A revision is a case of an enum implementing\n  `Ark4ne\\ApiRevisions\\Revisions\\Revision` (`revisions.enum`), ordered by `order()`, the last one being the head;\n  the revision of a request is resolved by the `revision` middleware of `ark4ne\u002Flaravel-api-revisions`\n  (`config\u002Frevisions.php`), an unknown value is answered with 400, and guards read `ApiRevision::current()`.\n- `->was(R, name:, schema:, down:)`, `->since(R)` and `->until(R)` of `ark4ne\u002Flaravel-api-revisions` on every\n  descriptor: what a field was up to a revision (its name, its shape, the conversion of its value), and the revisions\n  it exists at, bounds included. A relationship to another resource at an old revision is\n  `->was(R, schema: $this->one(OldResource::class))`. The links of a resource hold no history.\n- `#[Definition\\JsonApiSince(R)]` and `#[Definition\\JsonApiUntil(R)]` on a resource: the type exists from, or up to, a\n  revision; `Definitions::lifetime($class)` gives its `Definition\\Lifetime`. Rendering a resource at a revision it does\n  not exist at, as the primary data or through a relationship without a `was()` to the resource of that revision,\n  throws `RenderingException::notInRevision()` before anything is written.\n- A resource is rendered at the revision of its request: its attributes, meta, relationships (names, include paths,\n  related resources, cardinality) and links are those of that revision, its sparse fieldsets are read in the names\n  of that revision, and its eager loads are planned at it, in batch.\n- `ResourceDefinition::$revision`, `$since`, `$until` and `$fieldNames` (the names of the code mapped to those of the\n  revision), with `revision()`, `lifetime()`, `existsAt()` and `fieldNames()`. `Definitions::exists($class, $revision)`,\n  and a `$revision` on `Definitions::compile()` and `Definitions::loadConstraints()`.\n- `new Includes($resource, $maxDepth, $revision)` and `new Fields($resource, $revision)` validate the query of a client\n  against its revision, by the names at it; `revision()` returns it, for the tools. `JsonApiFormRequest` validates\n  `include` and `fields` at the revision of the request.\n- `jsonapi:check --revision=Labels` checks only the shape of that revision; `Diagnostic::$revision` names the revision\n  a diagnostic was found at (`Diagnostic::describe()`, `Diagnostic::key()`).\n- `ResourceAssertions::assertValid($class, $strict, $revision)`, `assertValidAtEveryRevision($class, $strict)` and\n  `definitionAt($class, $revision)` (the head without revision), for snapshot tests of the contract of each revision.\n- `Support\\Memo`: pure memos of what only depends on the code, flushed by the service provider after every Octane\n  request, task and tick.\n- `composer benchmark` also measures resources declaring revisions, at the head and at older revisions.\n- `ark4ne\u002Flaravel-api-revisions` `^1.0` is required; `JsonApiServiceProvider` registers its provider.\n- `Context\\CurrentRevision::of($configuration)`: the revision a rendering or a validation is made at, the current one\n  of `ark4ne\u002Flaravel-api-revisions`; `null`, the head, for an application without revision enum.\n- `Configuration::$revisions` and `withRevisions()`: the revision enum of the application, given by the service\n  provider from `revisions.enum`.\n- `JsonApiContext::fromRequest()` takes an optional `$revision`, for a context built at a given revision.\n- `Descriptors\\Schemas\\DecimalSchema`, `JsonSchema` and `MixedSchema`: the types this package adds to those of\n  `ark4ne\u002Flaravel-api-revisions`, registered by the service provider as `Schema::decimal()`, `Schema::json()` and\n  `Schema::mixed()` (`Descriptors\\Schemas\\SchemaTypes`). A value they refuse is a value error of the base.\n- `Descriptors\\Schemas\\FloatSchema`, returned by `$this->float()`: the float of `ark4ne\u002Flaravel-api-revisions`\n  (`Kind::Float`: same values accepted, same conversions, same export) with `precision()` and `truncate()`, as in\n  2.0. The value is rounded before its conversion to an older revision; `describer.precision` is its default.\n- `Descriptors\\Schemas\\RelationshipSchema` (`Schema::relationship($this->one(…))`): a relation as a field of the\n  base, which gives it its history; a custom type `jsonapi.relationship` whose fragment names the cardinality and the\n  related resources, converted to itself (a relationship to another resource at an old revision is\n  `->was(R, schema: Schema::relationship(…))`). `relationAt($field)` gives the relation in force at a revision.\n  A relationship of another resource is held too: `Schema::relationship(CommentResource::relationship(fn() => …))`.\n  Its conditions (`->when(fn($model) => …)`) are read for each resource: the relationship is left out when one\n  fails.\n- `applyWhen()` groups descriptors of `ark4ne\u002Flaravel-api-revisions` too: each member takes the condition as a\n  `->when()`, attributes and relationships alike.\n- `$this->whenInFields($request, 'name', $descriptor)` and `$this->whenInIncludes($request, 'posts', $descriptor)`\n  take a descriptor of `ark4ne\u002Flaravel-api-revisions` and give it the condition, read where each resource is rendered\n  (the includes of its place in the document).\n- `->whenNotNull()` and `->whenFilled()` on every descriptor of `ark4ne\u002Flaravel-api-revisions`\n  (`Descriptors\\Schemas\\Conditions`, macros registered by the service provider), `->unless()` being the one of the base;\n  `->whenNotNull()` and `->whenFilled()` read the source (its key, or its closure) before the value, as in 2.0. `->whenInFields()`: the attribute is rendered only when the sparse fieldset names it, in its\n  name at the revision (sparse in the definition). `->whenAppended(?string $attribute = null)`: only when the model\n  appends the accessor the descriptor reads, or the one named.\n- `JsonApiResource` implements `Revisioned` and `HasLifetime` of `ark4ne\u002Flaravel-api-revisions`\n  (`Resources\\Concerns\\DeclaresSchema`): a resource whose `toAttributes()`, `toResourceMeta()` and `toDocumentMeta()`\n  return descriptors of the base is compiled, cached, checked, locked and exported by it, as one response holding the\n  objects `attributes`, `meta` and `documentMeta`; `#[JsonApiSince]` \u002F `#[JsonApiUntil]` give its lifetime.\n- The values of such a resource are rendered by `ark4ne\u002Flaravel-api-revisions` (`Rendering\\ResourcePlan`): its hooks\n  run once per response on a template instance, the sparse fieldset is read in the names of the revision and a field\n  it leaves out is never evaluated. `JsonApiContext` carries the `Compilation\\Projection` (the shapes and the\n  projector of the application, `Definitions::projectWith()` \u002F `projection()`) and a `Context\\ResponseCache`.\n- A `JsonApiFormRequest` may use the `RevisionedRequest` of `ark4ne\u002Flaravel-api-revisions`: its `body()` is validated\n  in the shape of the client's revision and `jsonApi()` reads the head's.\n- `Http\\Body`: the body of a JSON:API write request as descriptors, for the `body()` of such a request.\n  `Body::resource($resource, attributes: […], relationships: […], id: …)` declares `data.type` (the type the\n  resource renders), `data.id`, `data.attributes` and `data.relationships`; `Body::toOne(UserResource::class)` and\n  `Body::toMany('tags', 'labels')` declare a relationship object and the types its linkage accepts. A\n  `JsonApiFormRequest` writes `$this->resourceObject(attributes: …, relationships: …)`.\n- `Http\\Rules\\Linkage`: a relationship object sent holds its `data`, which may be `null` or an\n  empty list (`jsonapi::validation.linkage.missing`).\n- `Compilation\\ResourceCheck`, tagged in the check of `ark4ne\u002Flaravel-api-revisions` (`revision:check`,\n  `assertRevisionsAreConsistent()`): at each revision, an attribute or a relationship named `id` or `type`\n  (`jsonapi-reserved-name`), an attribute and a relationship sharing a name (`jsonapi-name-collision`), a relationship\n  to a resource that does not exist there (`jsonapi-absent-resource`).\n- A sparse fieldset naming the members of an object (`fields[users]=address.city`) or of the objects of a list\n  (`fields[users]=tags.name`) of a resource declared on the base keeps them in its projection plan: a member left\n  out is never read nor converted. At a revision where a `was(schema:)` is in force, the members are those of its\n  schema, in `ResourceDefinition::fields()` (the `Fields` rule) as in the plan, the value being converted whole.\n- `Rendering\\ProjectedValues`: the members a `ResourcePlan` rendered, which the `ValueResolver` gives as they are.\n- `Definitions::for($class, $revision)` gives the attributes, the meta and the document meta of such a resource from\n  its shape at the revision (names, types, nullability, presence), and its `fieldNames`: `Fields`, `Includes` and the\n  tools read the names of the revision. Without revision, the newest one of the application.\n- The relationships of such a resource are declared with `Schema::relationship()`: its declaration holds a\n  `relationships` object, and the definition, the include validation, the eager-loads and the rendering read their\n  names and the relation in force from the shape of the revision.\n- `$this->struct([...], $source)`, `$this->arrayOf($items, $source)`, `$this->enum(State::class, $source)`: the\n  helpers of an object, a typed list and an enum.\n- A closure as a member of a hook of values is a value of any type (`'name' => fn() => …`).\n- `Definitions::head()` and `DefinitionCompiler::head()`: the newest revision of the application;\n  `DefinitionCompiler::compileEvery()` gives the definition of the head and of every older revision the resource\n  exists at.\n- Diagnostic `invalid-declaration`: the values of a resource cannot be compiled at the revision of the definition.\n- `extension.neon`: types those factories and macros for PHPStan, included by `phpstan\u002Fextension-installer` or by hand after\n  the extension of `ark4ne\u002Flaravel-api-revisions`.\n\n### Changed\n\n- **Breaking**: the values of a resource are declared and rendered with `ark4ne\u002Flaravel-api-revisions`.\n  `$this->string()`, `$this->integer()`, `$this->date()`… return its descriptors (`StringSchema`, `IntSchema`,\n  `DateSchema`…), nullable as `describer.nullable` says; `$this->one()`, `$this->many()`, `$this->morph()` and\n  `$this->morphMany()` return a `RelationshipSchema`, with the modifiers of a relationship (`links()`, `meta()`,\n  `withLoad()`, `whenIncluded()`, `filters()`, `can()`…). A closure given to a helper still receives the model.\n- **Breaking**: `toAttributes()`, `toRelationships()`, `toResourceMeta()` and `toDocumentMeta()` run once per\n  response, on a template whose `$this->resource` is set to each model before its values are read. A member is a\n  descriptor or a closure under its name: a plain value, a member without name, Laravel's `$this->when()` \u002F\n  `$this->mergeWhen()` are refused (`DefinitionException`). The default attributes and the links stay plain values.\n- **Breaking**: a condition is a closure read for each resource: `->when(Closure($model, $attribute))`,\n  `->unless(Closure)`, run before the value is read (a value whose condition fails is never computed, as in 2.0), `applyWhen(Closure, array)`; `$this->whenInFields()` and `$this->whenInIncludes()` take a\n  descriptor or a closure and return a descriptor.\n- **Breaking**: `enum()` takes the class of a backed enum; `struct()` takes an array of members; `array()->of()` is\n  `arrayOf()`; `time()`, `uuid()` and `ulid()` are a date-time and strings with a format.\n- **Breaking**: a value its type refuses is a value error of `ark4ne\u002Flaravel-api-revisions`\n  (`revisions.strict_values`); the format of a date and time is `revisions.date_time_format`.\n- **Breaking**: a type of the application is a descriptor registered in the `TypeRegistry` of\n  `ark4ne\u002Flaravel-api-revisions`, served by `$this->money()`.\n- **Breaking**: `Definitions::for($class, $revision)` gives one definition per revision (its `revision` is the one\n  asked, `null` for the head, the newest revision), built from the shape of the base; it throws when the values of\n  the resource cannot be compiled. `Definitions::compile()` and `jsonapi:check` report it as a diagnostic.\n- **Breaking**: the values of a definition are the model of `ark4ne\u002Flaravel-api-revisions`:\n  `ResourceDefinition::$attributes`, `$meta` and `$documentMeta` are the `Shape`s of the resource at the revision\n  (`null` where it has none), `attribute($name)` the `FieldDefinition` of that name at the revision; `$links` is the\n  list of the names of the links; `$sparse` and `isSparse()` name the attributes rendered only when requested.\n  `values()` and `sparse()` replace `attributes()`, `meta()` and `documentMeta()`. `Definition\\AttributeDefinition`\n  and `Definition\\ValueType` are removed.\n- **Breaking**: the compiled file (`jsonapi:cache`) holds the definitions without their shapes, given back on the\n  first `Definitions::for()` from those of the base; a file written by another version is ignored.\n- With the compiled files of `jsonapi:cache` and `revision:cache`, no hook of a resource runs on a probe: the\n  constraints of its loads are read from its hooks only when its definition declares one (`withLoad()` with a\n  closure).\n- **Breaking**: `jsonapi:check` and `ResourceAssertions` run the check of `ark4ne\u002Flaravel-api-revisions` on the\n  resources (`Compilation\\ResourceChecker`): the history of their fields and its conversions are checked again, with\n  the codes of the base (`conversion-missing`, `definition-error`…), and the rules of JSON:API are those of\n  `Compilation\\ResourceCheck`. `reserved-name` becomes `jsonapi-reserved-name`, names its field under its object\n  (`attributes.title`, `relationships.author`) and is no longer in `ResourceDefinition::$diagnostics`, which keeps\n  `invalid-declaration` and `hook-failure`; a class that is not a resource is the finding `invalid-resource`.\n  The definitions are compiled at every revision the resource exists at: a finding of an older revision names it.\n  `jsonapi:check` runs the `Checker` the container binds (that of `revision:check`: its checks, those the\n  application tags with `RevisionsServiceProvider::CHECKS`, the lock) on the resources checked only\n  (`Checker::forClasses()`): a locked class outside them is not reported as gone. `ResourceChecker` takes that\n  `Checker`.\n- **Breaking**: `jsonapi:cache` writes one definition per resource and revision; `jsonapi:check` checks each\n  revision the resource exists at and leaves the history of the fields to `revision:check`.\n- `make:jsonapi-resource` writes `$this->enum(State::class)`.\n- `composer benchmark` renders the resources of `bin\u002Fbenchmark\u002FPackage\u002F` with this package and those of\n  `bin\u002Fbenchmark\u002FLegacy\u002F` (the API of 1.9) with 1.9.\n\n### Removed\n\n- **Breaking**: `Descriptors\\Values\\*` and the trait `Descriptors\\Values`, `Descriptors\\ValueTypes`,\n  `JsonApi::valueType()`, `Descriptors\\Members`, `MergeWhenValue`, and the diagnostics `eager-attribute`,\n  `merge-when`, `unnamed-member` and `invalid-member`.\n- **Breaking**: `toDefinition()` (a definition written by hand), the overrides of `when()`, `whenHas()`, `merge()` and\n  `mergeWhen()` on a resource.\n- **Breaking**: the configuration keys `describer.datetime`, `describer.strict` and `describer.types`: still set, they throw an `InvalidConfigurationException` naming what replaces them.\n- **Breaking**: `DefinitionCompiler::EAGER_ATTRIBUTE`, `MERGE_WHEN`, `UNNAMED_MEMBER`, `INVALID_MEMBER` and\n  `RESERVED_NAME` (now `Compilation\\ResourceCheck::RESERVED_NAME`, `jsonapi-reserved-name`).\n\n## [2.0.0] — 2026-11-03\n\n### Added\n\n- **Resource definitions.** `PostResource::definition()` (or `PostCollection::definition()`) returns the\n  `ResourceDefinition` of a resource, compiled once from its hooks without a model: type, typed attributes, struct\n  members, relationships with their cardinality and eager-loads, links, meta of the resource object and of the document\n  (`documentMeta`, from `toDocumentMeta()`). It is the public, immutable and serializable model read by the validation\n  rules and by external tools, under semver with `Definitions::for()` and the cases of `ValueType`\n  (`docs\u002Farchitecture.md` §3). `toDefinition()` lets a resource write it by hand.\n- `Includes::resource()` and `Fields::resource()` return the resource a validation rule validates against, for the\n  tools that document the rules.\n- **Diagnostics** collected at compilation: eager attribute, `mergeWhen()`, member without name left out on the probe\n  (`unnamed-member`), member named `id` or `type`, member that cannot be described, hook failing without a model. The members of `mergeWhen()` \u002F `mergeUnless()` are missing from\n  the definition whatever the condition, with a `merge-when` warning: `applyWhen()` is the way to group conditional\n  members, kept in the definition and marked conditional; `merge()` keeps its members. `merge()` \u002F `mergeWhen()` given\n  a scalar or an object that is neither iterable, `Arrayable` nor `JsonSerializable` throws a `DefinitionException`.\n- **`php artisan jsonapi:cache`** compiles every definition into `bootstrap\u002Fcache\u002Fjsonapi.php`, read on first use;\n  **`jsonapi:clear`** removes it. Both run with `php artisan optimize` and `optimize:clear`. The resources are looked\n  for in `definitions.paths` (the `app` directory by default).\n- **`php artisan jsonapi:check [resources…] [--strict]`** prints the diagnostics of the resources and fails on an error\n  (on a warning too with `--strict`).\n- **`php artisan make:jsonapi-resource PostResource [--model=Post] [--force]`** generates a resource from its Eloquent\n  model: attributes from the casts (with the format of a date and the scale of a decimal), the fillable attributes and\n  the timestamps, relationships from the methods typed with a relation. `vendor:publish --tag=jsonapi-stubs` publishes\n  its stub.\n- **`Testing\\ResourceAssertions::assertValid(PostResource::class, strict: false)`** for the test suites of applications.\n- **Agent skills** shipped in the package, their examples run by the test suite: `skills\u002Flaravel-json-api\u002F` (the\n  rules, the reference of every helper, attribute, configuration key and command, and recipes) for coding agents\n  writing resources, `skills\u002Flaravel-json-api-upgrade\u002F` (procedure, mapping of every 1.x construct, ported examples)\n  for the migration from 1.x.\n- **`Context\\JsonApiContext`**, bound once per request: the parsed `include` (`IncludeTree`) and `fields`\n  (`SparseFieldsets`), the configuration and the diagnostics of the request. `include` and `fields` are read from the\n  query string only, as the specification defines them.\n- **Rendering engine** (`Rendering\\`): a `DocumentBuilder` assembles the document, a `ResourceObjectRenderer` renders\n  each resource object through explicit stages (attributes, relationships, links, meta), an `IncludedRegistry`\n  (identity map `type:id`) collects the included resources. Rendering keeps no state between two calls, a closure that\n  is not requested by the sparse fieldset is never called, and `included` is built in linear time.\n  An application adds its own `Rendering\\Stage`s in `rendering.stages`; they run after those of the package on every\n  resource object, primary or included.\n- `JsonApiCollection::toDocumentMeta()`: document meta of a collection, winning over those of its resources.\n- **`jsonapi` member** in every document, configured in `document.jsonapi` (`version`, `ext`, `profile`, `meta`):\n  `{\"version\": \"1.1\"}` by default, `false` to leave it out.\n- **Maximum include depth**, `include.max-depth` (no limit by default): the `Includes` rule rejects a deeper path\n  (`invalid_depth`), and nothing deeper is loaded nor rendered, even without validation.\n- **`describer.strict`** (`APP_DEBUG` by default): a value declared `nullable(false)` with no value to stand for\n  `null` (a date) throws a `RenderingException` naming the attribute, instead of rendering `null`.\n- `->truncate()` on a float value truncates to its precision, towards zero, instead of rounding.\n- The resource a collection collects is found as Laravel finds it, for its definition and for the validation rules:\n  `#[Collects]` (Laravel 13), `$collects`, then the name of the collection (`UserCollection` collects `User` or\n  `UserResource`).\n- `can()` given a class that does not implement Laravel's `Gate` contract throws a `DefinitionException` instead of\n  failing on a method call.\n- **Meta of resource identifiers**: `->identifierMeta(fn($related) => [...])` on a relationship (`identifierMeta()`\n  on `Relationship`) renders a `meta` in each identifier of its linkage (`data.meta`, `data[].meta`), for data of the\n  link itself such as a pivot. The `meta()` of the relationship object is unchanged. `RelationshipDefinition` exposes\n  `hasIdentifierMeta`.\n- `Exceptions\\RenderingException`, thrown when a member that must be a JSON object would be rendered as a list.\n- **Loading** (`Loading\\LoadPlanner`, `LoadPlan`): before rendering, the relations a document renders are loaded in\n  batch, computed from the definitions, the include and the sparse fieldsets: one `loadMissing()` per relation, per\n  model class and per include level, on the whole collection. The linkage of a relationship that is not included no\n  longer runs one query per resource.\n- **`relationship.linkage`**: `always` (default, 1.x), `loaded` or `included`, for when a relationship that is not\n  included renders its `data`. `->linkage(Linkage::Loaded)` sets it on one relationship; `RelationshipDefinition`\n  exposes it as `linkage`.\n  Two relationships loading the same relation path with different `withLoad()` constraints share the first one, with\n  a `load-conflict` diagnostic: a relation is loaded once per model.\n- **Server-side include**: `UserResource::make($user)->include('posts.comments')` (and on a collection) includes paths\n  in addition to the requested ones, carried by the context (`JsonApiContext::withInclude()`,\n  `IncludeTree::merge()`). Replaces 1.x `withInclude()`.\n- **Named relationship links**: `->links(self: …, related: …)` on a relationship, each link a string or a closure\n  receiving the related resource; they win over the links of a closure, which stays the first argument. The\n  definition records their names (`RelationshipDefinition::$namedLinks`). `links()` without any link throws a\n  `DefinitionException`.\n- `->pivotMeta(['role'], 'pivot')` on a relationship renders attributes of the pivot of each related model in the meta\n  of its resource identifier.\n- A `filter-on-unloaded` diagnostic when relationship filters run on a relation that is not loaded.\n- **Polymorphic relationships**: `$this->morph([Post::class => PostResource::class, Video::class =>\n  VideoResource::class])` (a `morphTo`), `$this->morphMany([...])`, or `->morphs([...])` on any relationship, render\n  each related model with the resource of the first class of the map it is an instance of (a collection class stands\n  for the resource it collects; `null` items of a to-many are left out); a model of a class out of the map throws a\n  `RenderingException`. The definition exposes the map (`morphs`, `isPolymorphic()`), the validation rules accept an\n  include or a fieldset one of the related resources has (path by path), and the related models are loaded resource\n  by resource.\n- **New value types**: `datetime()` (the former `date()`), `time()` (`H:i:s`), `decimal()` (an exact decimal rendered as a\n  string, `->scale(2)` rounding half away from zero, no float on the way), `uuid()`, `ulid()` and `json()` (a JSON\n  string rendered decoded; an invalid one throws a `RenderingException`). Each gives the definition a format\n  (the PHP format of a date, `decimal`, `uuid`, `ulid`, `json`), and is named as the items of an array (`->of('uuid')`).\n- `Value::valueFormat()`: the format a value type gives its definition, next to `valueType()`.\n- **Value types of the application**: a `Value` subclass registered under a name (`describer.types`, or\n  `JsonApi::valueType('money', MoneyValue::class)`) is written `$this->money()` in a resource and named as the items\n  of an array (`->of('money')`, as the types of the package: `->of('integer')`). `Descriptors\\ValueTypes` is the\n  registry; a name taken by a resource method or a class that is not a `Value` throws an\n  `InvalidConfigurationException` at boot.\n- **Generics for static analysis**: with `@extends JsonApiResource\u003CUser>`, `$this->resource` is a `User`, the\n  descriptors are `ValueString\u003CUser>`, `RelationOne\u003CUser>`…, their closures (`$this->string(fn($user) => …)`,\n  `->when(fn($request, $user) => …)`, `struct()`) receive a `User`, and `when()` returns `MissingValue|` the type of\n  its value. The hooks (`toRelationships()`, `toLinks()`, `toResourceMeta()`…) declare `Relation\u003CT>` \u002F `Value\u003CT>`;\n  `toLinks()` accepts link objects; `relationship()` gives a `Relationship\u003Cstatic>`, `collection()` a\n  `JsonApiCollection\u003Cstatic>`; `filters()` receives `Filters`, whose `when()` accepts a closure typed on the related\n  model; `array()->of()` and `arrayOf()` accept a descriptor written for any model. Checked by PHPStan on\n  `tests\u002FTypes`.\n- **Relationships without resource class**: `$this->one()`, `$this->one('user')`, `$this->many()` on a resource\n  rendering an Eloquent model guess the related resource as `Model::toResource()` does: the model of the resource\n  (`#[JsonApiModel(Post::class)]`, otherwise `App\\Http\\Resources\\PostResource` → `App\\Models\\Post`), the related model of\n  its relation, then its `#[UseResource]` or its resource by convention. Guessed once, when compiled; a relationship\n  that cannot be guessed is an error of the definition. `Relation::related()` is `null` for them until resolved.\n- **Links by route**: `#[JsonApiRoutes(self: 'posts.show')]` on a resource generates `links.self` of its resource\n  objects, and `links.self` \u002F `links.related` of their relationships from the routes `posts.relationships.{relationship}`\n  and `posts.{relationship}` when they exist (`relationship:` and `related:` to name others, `false` for none), also for\n  a relationship left out by `relationship.linkage`. The links declared by the resource win, even `null`. The routes\n  are recorded in `ResourceDefinition::$routes` (`RouteNames`), also for a definition written by hand; `jsonapi:check`\n  fails when the `self` route does not exist (`missing-route`). The service provider puts\n  `Laravel\\Rendering\\RouteLinksStage` before the stages of `rendering.stages` (`Configuration::prependRenderingStages()`).\n- **Declarative type**: `#[JsonApiType('posts')]` on a resource gives its type without overriding `toType()`, whose\n  default implementation returns it (an override can call `parent::toType()`).\n- **Type naming convention** `type.naming`: the type of a resource that declares none, from its class name without the\n  `Resource` suffix: `kebab-singular` (default, `blog-post`), `kebab-plural` (`blog-posts`), `snake-plural`\n  (`blog_posts`), or a class implementing `Configuration\\TypeNaming`.\n- **`Http\\JsonApiFormRequest`**: a form request declaring `protected string $resource = PostResource::class;`\n  validates the `include` and `fields` query parameters against the definition of the resource (`Rules\\Includes`,\n  `Rules\\Fields`, both `nullable`), then the rules of its own `rules()`: a rule keyed `include` or `fields` replaces\n  the preconfigured one and stays `nullable`; a nested key (`fields.*`) is added to it. Both parameters are read from the query string only: a member of the body\n  with the same name is neither validated nor returned by `validated()`. A form request that names no resource throws\n  a `DefinitionException`.\n- **`JsonApiFormRequest::jsonApi()`** reads the resource object of a write request from the validated data, as an\n  `Http\\ResourceDocument`: `type()`, `id()` (a string), `attributes()` \u002F `attribute()` \u002F `hasAttribute()`,\n  `relationships()` \u002F `relationship()` (the linkage) \u002F `hasRelationship()` (`true` for a cleared to-one relationship),\n  `ids()` (the ids of a linkage, as strings) and `meta()`. A member without rule is missing from it, and so is a\n  relationship cleared (`null` or `[]`) unless its linkage (`data.relationships.tags.data`) has a rule of its own.\n- **Error documents** (`Http\\Errors\\`): `ErrorRenderers` asks its `ErrorRenderer`s by decreasing `PRIORITY` and\n  renders the exception with the first that supports it, as an `ErrorDocument` (status, headers, `errors`, `meta`, the\n  configured `jsonapi` member) served as `application\u002Fvnd.api+json`. The renderers of the package:\n  `ValidationErrorRenderer` (its status, `422` by default, one error per message, `source.parameter` for a query\n  parameter or a request without body, `source.pointer` for a member of the body; an exception with a response of its\n  own is left to Laravel), `AuthenticationErrorRenderer` (`401`), `AuthorizationErrorRenderer` (`403` or the status\n  given by `denyWithStatus()` \u002F `denyAsNotFound()`, without the default message then), `ModelNotFoundErrorRenderer`\n  (`404`, without the class of the model), `HttpErrorRenderer` (status and headers of the `HttpException`) and\n  `ThrowableErrorRenderer` (`500`, message and location in debug only). A message that is not UTF-8 is substituted. The exceptions Laravel prepares\n  (`ModelNotFoundException` and `AuthorizationException` made `HttpException`s) are recognized.\n- **`JsonApi::renderErrors($exceptions, when: null)`** in `bootstrap\u002Fapp.php` (`->withExceptions()`) renders the\n  exceptions through the `ErrorRenderers` of the container, for the requests that expect JSON or those `when` accepts;\n  an exception no renderer supports is rendered by Laravel. It is called after the `render()` callbacks of the\n  application, which run in their order of registration. The service provider binds the renderers of the package,\n  with the configured `jsonapi` member and `app.debug`.\n- **`errors.renderers`**: error renderers of the application, built by the container and asked with those of the\n  package by their `PRIORITY` (one of a higher priority replaces the renderer of the package for its exceptions);\n  checked at boot. `ErrorRenderers::with()` adds renderers to a copy.\n- **Content negotiation**: the `jsonapi` route middleware (`Http\\Middleware\\NegotiateContent`) answers `415` to a\n  JSON:API `Content-Type` with a parameter other than `ext` \u002F `profile` or an unsupported extension, `406` to an\n  `Accept` whose every JSON:API media type is such or refused (`q=0`), and adds `Vary: Accept` to every response, its\n  errors included. An application alias `jsonapi` is kept.\n- The documents and error documents are served with the extensions and profiles of `document.jsonapi` in their\n  `Content-Type` (`JsonApiObject::contentType()`), as the specification requires when an extension applies.\n- **Interoperability with Laravel's native JSON:API.** `one()` \u002F `many()` accept a native resource class\n  (`Illuminate\\Http\\Resources\\JsonApi\\JsonApiResource`), a collection collecting one, or guess one (`#[UseResource]`,\n  the naming convention), outside a morph map: its linkage is loaded in batch as any other, `links()` \u002F `meta()` \u002F\n  `identifierMeta()` receive it; included, it is rendered as a leaf by its own `resolve()`, with its `fields[type]`,\n  never its relationships, and nothing is loaded nor included under it (the `Includes` rule rejects such a path; the\n  `Fields` rule accepts the fields of its type as they are, read without model, and a type no definition has when it\n  cannot be). Its definition names the class (`RelationshipDefinition::$native`,\n  `isNative()`) and relates no definition: `$related` is empty. `RelationshipDefinition::to()` builds the relationship\n  to a resource, a collection or a native resource. A native `JsonApiRequest` renders as any request.\n- **`toId()`**, the hook of Laravel's native resources, gives the identifier read by the default `toIdentifier()`\n  (`null` by default: the model key).\n\n### Changed\n\n- **Breaking:** the validation rules move from `Ark4ne\\JsonApi\\Requests\\Rules` to `Ark4ne\\JsonApi\\Http\\Rules`.\n- **Breaking:** the messages of `Rules\\Fields` and `Rules\\Includes` are translations of the package,\n  `jsonapi::validation.fields.*` and `jsonapi::validation.includes.*`, published by\n  `vendor:publish --tag=jsonapi-lang`, instead of `validation.custom.jsonapi.*`. `Rules\\Includes` read the keys of\n  `fields`: its own keys are used now. `\":resource\" doesn't exists.` is fixed in `\":resource\" doesn't exist.`.\n  Both rules are `final` and keep no state between two values; `Rules\\Traits\\UseTrans` is removed.\n\n- `array()->of(ValueStruct::class)` throws a `DefinitionException` asking for an instance, when declared, instead of\n  failing on rendering (a struct needs its closure).\n\n- **Breaking:** requires PHP `^8.3` and Laravel `^12.46` or `^13.0`. PHP 8.1 and 8.2, Laravel 10 and 11 are no longer\n  supported.\n- Every source file declares `strict_types=1`.\n- **Breaking:** `$this->date()` renders a date without time (`Y-m-d`, `Values\\ValueDate`); a date and time is\n  `$this->datetime()` (`Values\\ValueDateTime`, the former `ValueDate`), whose default format is `describer.datetime`\n  (ex-`describer.date`, which throws an `InvalidConfigurationException` when still set). A date value that is neither a date, a timestamp nor a string throws a `RenderingException`.\n- **Breaking:** a float with a precision is rounded (`1.239` gives `1.24`, `-1.111` gives `-1.11`) instead of floored\n  (`1.15` gave `1.14`). `->truncate()` truncates towards zero.\n- **Breaking:** `enum()->of(State::class)` casts a raw value through the enum (`tryFrom()` for a backed enum, the\n  case name for a pure one) and throws a `RenderingException` for what is not one of its cases.\n- `can()`, `whenLoaded()`, `whenPivotLoaded()` and `whenAppended()` work on a resource that is not an Eloquent model\n  (array, object) instead of throwing a `TypeError`: `whenLoaded()` and `whenPivotLoaded()` read its attribute,\n  `whenAppended()` leaves the value out.\n- **Breaking:** a date declared `nullable(false)` renders `null` for `null` instead of `1970-01-01T00:00:00+00:00`, or\n  throws with `describer.strict`.\n- A published `config\u002Fjsonapi.php` missing a nested key (`describer.strict`) takes the default of the package for\n  it: the package file is merged recursively, not only by top-level key.\n- **Breaking:** the configuration is passed to the values: `Value::value(mixed $of, Request $request, Configuration\n  $configuration)`, and `valueFor()` \u002F `resolveFor()` take an optional `Configuration`. `Support\\Config` (static\n  properties set at boot) is removed.\n- The links and meta of a relationship are resolved like the other members: a descriptor (`$this->integer(...)`), a\n  closure or a condition (`when()`) in them is rendered as its value instead of an empty object, as in\n  `toResourceMeta()`. The members of `meta()` \u002F `links()` are resolved against the resource, those of\n  `identifierMeta()` against each related resource.\n- **Breaking:** descriptors are immutable: every fluent method (`->nullable()`, `->when()`, `->format()`,\n  `->withLoad()`…) returns a copy. A descriptor modified without using the returned value is left unchanged.\n- **Breaking:** the service provider is `Ark4ne\\JsonApi\\Laravel\\JsonApiServiceProvider` (was\n  `Ark4ne\\JsonApi\\Providers\\LaravelJsonApiProvider`). Package discovery registers it.\n- **Breaking:** `config\u002Fjsonapi.php` is validated at boot: a value of the wrong type throws an\n  `InvalidConfigurationException` naming the key.\n- The `Includes` and `Fields` validation rules and the eager-loads of the requested includes read the definitions.\n  `Fields` accepts the relationship names of a type; both rules accept a collection class.\n- **Breaking:** `JsonApiResource::toArray($request)` returns the resource object only, and\n  `JsonApiCollection::toArray($request)` the list of resource objects; both are idempotent. The whole document\n  (`data`, `included`, document `meta`, pagination) is built by `toResponse()`, which still merges `with()` and\n  `additional()`. `with()` no longer returns `included` nor the document meta. The `$included` \u002F `$minimal` second\n  argument of `toArray()` is removed.\n- **Breaking:** the `id` of a resource object and of a resource identifier is always a string.\n- **Breaking:** an empty to-one relationship renders `{\"data\": null}` and an empty to-many `{\"data\": []}`; a\n  relationship with neither data, links nor meta is left out; empty `attributes`, `relationships`, `links` and `meta`\n  are left out instead of rendered as `[]`. A hook returning members without names (`return ['a', 'b'];`) throws a\n  `RenderingException` instead of rendering a JSON list.\n- **Breaking:** `included` never repeats a primary resource and holds each `type:id` once; a resource reached through\n  several paths keeps the relationships rendered on each of them.\n- **Breaking:** `fields[type]` restricts the relationships of the type too, as the specification says. Set\n  `fields.relationships` to `'keep'` to render every relationship as 1.x did.\n- **Breaking:** only the primary resources add document meta (`toDocumentMeta()`), the included ones no longer do. In a\n  collection they are merged key by key, the first resource setting a key keeping it (1.x gathered the values of a\n  shared key into a list).\n- **Breaking:** without `toAttributes()`, the attributes of a model are read with `attributesToArray()` (loaded\n  relations are no longer rendered as attributes) and leave out its key, `id`, `type` and the foreign keys of the\n  `BelongsTo` \u002F `MorphTo` relationships declared in `toRelationships()`; `id` and `type` are left out of an array too.\n- `whenInFields()` only marks a value: the renderer decides from the sparse fieldset. `Value::valueFor()` returns the\n  value whatever the request.\n- Collections and other arrayables returned by a hook are rendered as plain arrays.\n- **Breaking:** `relationship.when-included` is replaced by `relationship.linkage` (`'included'` for `true`); the old key\n  throws an `InvalidConfigurationException`. `$autoWhenIncluded` on a resource is still read (`true`: `whenIncluded()`\n  on every relationship, `false`: `always` for those without their own linkage), and is now recorded in its\n  definition.\n- **Breaking:** a relationship read from a relation (`$this->one()`, `$this->many()` without closure) loads it without\n  `withLoad()`; `withLoad(false)` disables it. `withLoad(true)` loads the relation the relationship is read from\n  (`one(PostResource::class, 'post')` loads `post`), no longer one named after the relationship.\n- **Breaking:** a `withLoad()` constraint applies to the linkage too, not only when the relationship is included: the\n  linkage and `included` list the same resources.\n- **Breaking:** a relationship with `whenLoaded()` is not loaded for its linkage, but is loaded when included (1.x left\n  it out unless the application had loaded it).\n- **Breaking:** `Filters` is immutable: `can()` and `when()` return a copy. The closure given to `->filters()` must\n  return the filters it built (`fn(Filters $filters) => $filters->can('view')`).\n- **Breaking:** `RelationshipDefinition::$related` is a list of resource classes: one, or several for a polymorphic\n  relationship. Compiled definitions must be compiled again (`php artisan jsonapi:cache`).\n- **Breaking:** `RelationshipDefinition::$whenIncluded` is replaced by `$linkage` (`Linkage|null`, `null` for the\n  configured one), which the compilation no longer fills from the configuration.\n- **Breaking:** `toMeta()` (document meta) is renamed `toDocumentMeta()` on resources and collections; a class still\n  declaring `toMeta()` throws a `DefinitionException` rather than losing its meta silently.\n- **Breaking:** `Relationship::withLinks()` and `withMeta()` are renamed `links()` and `meta()`, as on the relationship\n  descriptors.\n\n- **Breaking:** `$this->uuid()`, `ulid()`, `decimal()`, `json()`, `time()` and `datetime()` in a resource return a\n  value descriptor instead of calling the method of that name on the model: call it on `$this->resource`.\n- **Breaking:** the descriptors (`RelationOne`, `RelationMany`, `ValueString` and the other values), `Relationship`,\n  `Filters`, `CallbackFilterRule` and `PolicyFilterRule` are `final`; `Describer` and `Relation` stay abstract roots,\n  extended by the package only.\n- **Breaking:** `Filters` is no longer generic (`Filters` instead of `Filters\u003CPost>`).\n- **Breaking:** `applyWhen()` calls a `Closure` member to read its value; another callable (`'strlen'`, `[$a, 'b']`)\n  is rendered as it is.\n- A `string()`, `integer()` or `float()` value that cannot be cast (an array, an object that is not `Stringable`)\n  throws a `RenderingException` naming the expected type, instead of a PHP error or a silent `0`\u002F`'Array'`.\n- A resource whose identifier is neither an integer nor a string throws a `RenderingException`.\n- `array()` reads the items of a collection, an arrayable, an iterable, a `JsonSerializable` or the properties of an\n  object, a scalar as the only item and `null` as none.\n\n### Fixed\n\n- A relationship given to `applyWhen()` (`PostResource::relationship(...)`) is left out when the condition fails; it\n  was rendered whatever the condition.\n- A condition (`when()`, `unless()`) may return any truthy value, as Laravel's `when()`: a non-boolean result threw a\n  `TypeError`.\n\n### Removed\n\n- **Breaking:** `JsonApiResource::schema()`, `JsonApiCollection::schema()` and `Resources\\Skeleton`: read\n  `PostResource::definition()` instead.\n- **Breaking:** `Asserts\\AssertJsonApiResource`: run `php artisan jsonapi:check` or\n  `Testing\\ResourceAssertions::assertValid()`.\n- `Support\\FakeModel`, internal, replaced by `Support\\Probe`.\n- **Breaking:** the `Resources\\Resourceable` interface and `Relationship::toArray()`: the engine reads\n  `Rendering\\RenderableResource` and `Rendering\\RelationshipSource`.\n- The `resolveResourceData()` override (Laravel 12.45 fix), useless now that the rendering does not go through\n  Laravel's resource response.\n- **Breaking:** the static helpers `Support\\Includes`, `Support\\Fields` (and their Octane `RequestReceived` listener),\n  `Support\\With`, `Support\\Supported`, `Support\\Traits\\HasLocalCache` and the deprecated\n  `PrepareData::prepareData()`: the include and the sparse fieldsets of the request are in the `JsonApiContext`. The\n  polyfill of `JsonResource::unless()` is removed, Laravel's is used.\n- **Breaking:** `$preserveKeys` on a resource: `data` is always a JSON list. `collection()` returns a\n  `JsonApiCollection` instead of an anonymous subclass.\n- **Breaking:** `float()` is `protected`, like the other value helpers.\n- The `Includes` and `Fields` rules parse the request as the rendering does: spaces and empty segments are ignored,\n  a fieldset that is not a string fails.\n- **Breaking:** `ConditionallyLoadsAttributes::whenIncluded($request, $type, $value)` is renamed\n  `whenInIncludes($request, $relationship, $value)`: `whenIncluded()` is only the one of the relationships.\n- `JsonApiResource::requestedRelationshipsLoad()` (internal), replaced by the `LoadPlanner`.\n- **Breaking:** `Support\\Arr`, the `Descriptors\\Descriptors` trait, `Descriptors\\Resolver`, `Traits\\HasRelationLoad`\n  and `Descriptors\\Relations\\RelationMissing`, unused or internal: use Laravel's `Arr`, and `withLoad()` on the\n  descriptors and on `Relationship`.\n\n## [1.9.1] — 2026-03-26\n\n### Fixed\n\n- Deep includes: the included resources are deduplicated, and nested includes are filled recursively.\n\n## [1.9.0] — 2026-03-22\n\n### Added\n\n- Laravel 13 support.\n\n## [1.8.0] — 2026-03-10\n\n### Added\n\n- Octane compliance: `Support\\Fields` and `Support\\Includes` can be flushed between requests.\n\n## [1.7.1] — 2026-01-13\n\n### Added\n\n- PHP 8.5 in the test matrix.\n\n## [1.7.0] — 2026-01-12\n\n### Fixed\n\n- Compatibility with the JSON:API support introduced by Laravel's HTTP resources (breaking change on their side):\n  `toAttributes()` is `public`.\n\n## [1.6.3] — 2026-01-12\n\n### Changed\n\n- Laravel above 12.44 is not supported, because of compatibility issues.\n\n## [1.6.2] — 2025-12-08\n\n### Fixed\n\n- Simplified a return statement in `Relation`.\n\n## [1.6.1] — 2025-12-08\n\n### Added\n\n- **Typed arrays**: the elements of an array attribute can be typed.\n  - `of()` on the `array()` descriptor specifies the element type, as a descriptor instance or a class reference\n    (`ValueString::class`).\n  - `arrayOf()` is a shorter helper.\n  - Nested typed arrays (multi-dimensional arrays) are supported.\n  - Every conditional method works with them (`when()`, `whenNotNull()`, `whenFilled()`…).\n  - The type cast is applied to every element (strings, integers, floats, booleans…).\n- Generic types on `ValueEnum` and the value descriptors.\n\n## [1.6.0] — 2025-10-16\n\n### Changed\n\n- The validation rules implement Laravel's `ValidationRule` interface, and their error handling is improved.\n\n## [1.5.2] — 2025-10-16\n\n### Added\n\n- Relationship filters, to apply policies or any custom rule to the related resources.\n\n## [1.5.1] — 2025-05-08\n\n### Added\n\n- Laravel 12 support.\n\n## [1.5.0] — 2025-02-14\n\n### Added\n\n- Struct value type.\n\n## [1.4.6] — 2024-12-28\n\n### Changed\n\n- PHP 8.4 support.\n\n### Fixed\n\n- `applyWhen` behavior.\n\n## [1.4.5] — 2024-12-12\n\n### Changed\n\n- The condition of `applyWhen` can be a closure.\n- CI: tests run on every supported Laravel version.\n\n## [1.4.4] — 2024-08-07\n\n### Fixed\n\n- Typo in `ToResponse`: `Content-type` is now `Content-Type`.\n\n## [1.4.3] — 2024-08-06\n\n### Added\n\n- Laravel 11 support.\n\n### Removed\n\n- **Breaking:** Laravel 8 support.\n\n## [1.4.2] — 2023-11-24\n\n### Fixed\n\n- An exception was thrown when including a to-one relationship\n  ([#19](https:\u002F\u002Fgithub.com\u002FArk4ne\u002Flaravel-json-api\u002Fissues\u002F19)).\n\n## [1.4.1] — 2023-06-21\n\n### Fixed\n\n- `autoWhenHas` and `autoWhenIncluded` no longer throw an exception.\n\n## [1.4.0] — 2023-06-01\n\n### Added\n\n- Enums in values.\n- Automatic `whenHas` check on attributes.\n- Automatic `whenIncluded` on relationships.\n- A polyfill for the `unless` method.\n- `whenHas` is overridden to support non-Eloquent models.\n\n### Removed\n\n- **Breaking:** PHP 8.0 support.\n\n## [1.3.8] — 2023-03-28\n\n### Fixed\n\n- A `fields` input that is not an array is handled.\n\n## [1.3.7] — 2023-02-18\n\n### Added\n\n- Laravel 10 support.\n\n## [1.3.6] — 2023-02-04\n\n### Fixed\n\n- `JsonApiResource` and the descriptors support any array or object.\n\n## [1.3.5] — 2023-02-03\n\n### Fixed\n\n- `Descriptors\\Values` accepts a mixed resource.\n\n## [1.3.4] — 2023-02-03\n\n### Fixed\n\n- `Descriptors\\Values` accepts a mixed resource.\n\n## [1.3.3] — 2023-01-17\n\n### Fixed\n\n- PHPStan annotations of the descriptors.\n\n## [1.3.2] — 2023-01-16\n\n### Changed\n\n- The relationships loaded automatically are better included.\n\n## [1.3.1] — 2022-12-26\n\n### Fixed\n\n- Default value of `Relationship::whenIncluded`.\n\n## [1.3.0] — 2022-12-26\n\n### Added\n\n- Relationships are loaded automatically.\n\n## [1.2.1] — 2022-12-19\n\n### Fixed\n\n- Merging values no longer replaces concrete values with missing values.\n\n## [1.2.0] — 2022-09-27\n\n### Added\n\n- The described notation (`$this->string()`, `$this->one()`…).\n- `applyWhen`: unlike `mergeWhen`, it keeps the keys even when the condition is not met.\n\n### Changed\n\n- **Breaking:** by default, `Resources\\Concerns\\Identifier::toType` computes the type from the resource class instead\n  of the model class.\n\n## [1.1.10] — 2022-09-11\n\n### Added\n\n- Conditionally loaded fields.\n\n## [1.1.9] — 2022-06-09\n\n### Fixed\n\n- `JsonApiResource::toArray` no longer filters on `type` and `id`.\n\n## [1.1.8] — 2022-06-01\n\n### Added\n\n- `Skeleton`: the skeleton of a `JsonApiResource`.\n\n### Changed\n\n- `Resources\\Schema::schema` and `Resources\\SchemaCollection::schema` return a `Skeleton`.\n\n### Deprecated\n\n- `Support\\With`, replaced by `Support\\Arr`.\n\n### Fixed\n\n- `JsonApiResource::toArray` returns a true deep array.\n- `Support\\Includes` when the request has an empty `include` parameter.\n\n## [1.1.7] — 2022-05-11\n\n### Fixed\n\n- Request rules: `$failures` was not initialized.\n\n## [1.1.6] — 2022-05-11\n\n### Fixed\n\n- Request rules: the type of the value is checked before asserting.\n\n## [1.1.5] — 2022-04-28\n\n### Fixed\n\n- `Relationships::mapRelationships` when the data is empty.\n\n## [1.1.4] — 2022-04-27\n\n### Changed\n\n- PHPStan level 6 compliant.\n- The schema safely instantiates its class to build the structure.\n- Relationships can be conditional.\n\n### Fixed\n\n- The schema handles the attributes correctly.\n\n## [1.1.3] — 2022-04-26\n\n### Added\n\n- `Includes::includes` returns the remaining includes of the current resource.\n\n### Fixed\n\n- `FakeModel` implements `ArrayAccess` correctly (missing return type on `offsetGet`).\n\n## [1.1.2] — 2022-04-25\n\n### Fixed\n\n- PHPStan annotations of the rules.\n\n## [1.1.1] — 2022-04-25\n\n### Fixed\n\n- The `Resource` namespace is renamed `Resources`.\n\n## [1.1.0] — 2022-04-22\n\n### Added\n\n- Request validation rules `Requests\\Rules\\{Includes, Fields}`.\n\n### Changed\n\n- `Support\\Includes::get()` is improved, and its caching is disabled.\n\n## [1.0.2] — 2022-04-21\n\n### Fixed\n\n- `toAttributes()` returns `array\u003Cstring, Closure|mixed>`.\n- The constructors are no longer `final`.\n\n## [1.0.1] — 2022-04-21\n\n### Added\n\n- Generic types on `JsonApiResource` and `JsonApiCollection`.\n\n## [1.0.0] — 2022-04-21\n\n### Added\n\n- The `Schema` trait implements `schema()` on `JsonApiResource` and `JsonApiCollection`.\n- `Relationize::relationship()` creates a relationship for a resource\n  (`PostResource::relationship(fn() => $this->posts)`).\n\n### Changed\n\n- **Breaking:** the signature of the `Relationship` constructor:\n\n  ```php\n  public function __construct(\n      protected string $resource, \u002F\u002F class-string of the resource\n      protected Closure $value,   \u002F\u002F MUST be a closure returning the actual value\n      protected ?Closure $links = null,\n      protected ?Closure $meta = null,\n  )\n  ```\n- **Breaking:** the constructors of `JsonApiResource` and `JsonApiCollection` cannot be overridden.\n- **Breaking:** `JsonApiResource::toAttributes` **should** return an `array\u003Cstring, Closure>`, and `toRelationships`\n  **must** return an `array\u003Cstring, Relationship>`.\n- **Breaking:** the second parameter of `Resourceable::toArray` defaults to `true` instead of `false`, and its\n  meaning is inverted.\n\n### Removed\n\n- **Breaking:** `Relationize::asRelationship`.\n",{"title":291,"description":306},"oxC1HzKruf5UIbo3trCRfoHufeeAwd89DjNIATk35aM",[5194,5196],{"title":279,"path":280,"stem":281,"description":5195,"children":-1},"The interfaces to plug your own types, error renderers, rendering stages and type naming.",{"title":287,"path":288,"stem":289,"description":4806,"children":-1},1795438898628]