[{"data":1,"prerenderedAt":1016},["ShallowReactive",2],{"navigation":3,"\u002Fessentials\u002Freaders":173,"\u002Fessentials\u002Freaders-surround":1011},[4,27,69,103,113,135],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":26},"Getting Started","i-heroicons-star","\u002Fgetting-started","1.getting-started",[10,14,18,22],{"title":11,"path":12,"stem":13},"Introduction","\u002Fgetting-started\u002Fintroduction","1.getting-started\u002F1.introduction",{"title":15,"path":16,"stem":17},"Installation","\u002Fgetting-started\u002Finstallation","1.getting-started\u002F2.installation",{"title":19,"path":20,"stem":21},"Quick start","\u002Fgetting-started\u002Fquick-start","1.getting-started\u002F3.quick-start",{"title":23,"path":24,"stem":25},"Upgrade guide","\u002Fgetting-started\u002Fupgrade-guide","1.getting-started\u002F5.upgrade-guide",false,{"title":28,"icon":29,"path":30,"stem":31,"children":32,"page":26},"Essentials","i-heroicons-shield-check","\u002Fessentials","2.essentials",[33,37,41,45,49,53,57,61,65],{"title":34,"path":35,"stem":36},"Controls","\u002Fessentials\u002Fcontrols","2.essentials\u002F1.controls",{"title":38,"path":39,"stem":40},"Perimeters","\u002Fessentials\u002Fperimeters","2.essentials\u002F2.perimeters",{"title":42,"path":43,"stem":44},"Perimeter classes","\u002Fessentials\u002Fperimeter-classes","2.essentials\u002F3.perimeter-classes",{"title":46,"path":47,"stem":48},"Levels","\u002Fessentials\u002Flevels","2.essentials\u002F4.levels",{"title":50,"path":51,"stem":52},"Boundaries","\u002Fessentials\u002Fboundaries","2.essentials\u002F5.boundaries",{"title":54,"path":55,"stem":56},"Parents","\u002Fessentials\u002Fparents","2.essentials\u002F6.parents",{"title":58,"path":59,"stem":60},"Policies","\u002Fessentials\u002Fpolicies","2.essentials\u002F7.policies",{"title":62,"path":63,"stem":64},"Queries","\u002Fessentials\u002Fqueries","2.essentials\u002F8.queries",{"title":66,"path":67,"stem":68},"Readers","\u002Fessentials\u002Freaders","2.essentials\u002F9.readers",{"title":70,"icon":71,"path":72,"stem":73,"children":74,"page":26},"Search","i-heroicons-magnifying-glass","\u002Fsearch","3.search",[75,79,83,87,91,95,99],{"title":76,"path":77,"stem":78},"Search overview","\u002Fsearch\u002Foverview","3.search\u002F1.overview",{"title":80,"path":81,"stem":82},"Engines","\u002Fsearch\u002Fengines","3.search\u002F2.engines",{"title":84,"path":85,"stem":86},"Keeping the keys fresh","\u002Fsearch\u002Fkeeping-the-keys-fresh","3.search\u002F3.keeping-the-keys-fresh",{"title":88,"path":89,"stem":90},"Exceptions and dates","\u002Fsearch\u002Fexceptions-and-dates","3.search\u002F4.exceptions-and-dates",{"title":92,"path":93,"stem":94},"Searching through a parent","\u002Fsearch\u002Fthrough-a-parent","3.search\u002F5.through-a-parent",{"title":96,"path":97,"stem":98},"Search from the browser","\u002Fsearch\u002Ffrom-the-browser","3.search\u002F6.from-the-browser",{"title":100,"path":101,"stem":102},"Your own search client","\u002Fsearch\u002Fyour-own-client","3.search\u002F7.your-own-client",{"title":104,"icon":105,"path":106,"stem":107,"children":108,"page":26},"Integrations","i-heroicons-puzzle-piece","\u002Fintegrations","4.integrations",[109],{"title":110,"path":111,"stem":112},"laravel-rest-api","\u002Fintegrations\u002Flaravel-rest-api","4.integrations\u002F1.laravel-rest-api",{"title":114,"icon":115,"path":116,"stem":117,"children":118,"page":26},"Testing and Tooling","i-heroicons-wrench-screwdriver","\u002Ftesting-and-tooling","5.testing-and-tooling",[119,123,127,131],{"title":120,"path":121,"stem":122},"Testing","\u002Ftesting-and-tooling\u002Ftesting","5.testing-and-tooling\u002F1.testing",{"title":124,"path":125,"stem":126},"access:check","\u002Ftesting-and-tooling\u002Faccess-check","5.testing-and-tooling\u002F2.access-check",{"title":128,"path":129,"stem":130},"Cache and about","\u002Ftesting-and-tooling\u002Fcache-and-about","5.testing-and-tooling\u002F3.cache-and-about",{"title":132,"path":133,"stem":134},"Generators","\u002Ftesting-and-tooling\u002Fgenerators","5.testing-and-tooling\u002F4.generators",{"title":136,"icon":137,"path":138,"stem":139,"children":140,"page":26},"Digging Deeper","i-heroicons-list-bullet","\u002Fdigging-deeper","6.digging-deeper",[141,145,149,153,157,161,165,169],{"title":142,"path":143,"stem":144},"Abilities","\u002Fdigging-deeper\u002Fabilities","6.digging-deeper\u002F1.abilities",{"title":146,"path":147,"stem":148},"Kept decisions","\u002Fdigging-deeper\u002Fdecisions","6.digging-deeper\u002F2.decisions",{"title":150,"path":151,"stem":152},"Batched decisions","\u002Fdigging-deeper\u002Fbatched-decisions","6.digging-deeper\u002F3.batched-decisions",{"title":154,"path":155,"stem":156},"Row checks","\u002Fdigging-deeper\u002Frow-checks","6.digging-deeper\u002F4.row-checks",{"title":158,"path":159,"stem":160},"Several brands","\u002Fdigging-deeper\u002Fseveral-brands","6.digging-deeper\u002F5.several-brands",{"title":162,"path":163,"stem":164},"Row context","\u002Fdigging-deeper\u002Frow-context","6.digging-deeper\u002F6.row-context",{"title":166,"path":167,"stem":168},"What is public in 1.x","\u002Fdigging-deeper\u002Fpublic-api","6.digging-deeper\u002F7.public-api",{"title":170,"path":171,"stem":172},"Use with AI","\u002Fdigging-deeper\u002Fuse-with-ai","6.digging-deeper\u002F8.use-with-ai",{"id":174,"title":66,"body":175,"description":1003,"extension":1004,"links":1005,"meta":1006,"navigation":761,"path":67,"seo":1007,"sitemap":1008,"stem":68,"updatedAt":1009,"__hash__":1010},"docs\u002F2.essentials\u002F9.readers.md",{"type":176,"value":177,"toc":996},"minimark",[178,183,205,283,301,305,308,670,696,720,724,731,836,853,867,870,873,884,893,896,926,929,935,947,950,954,957,992],[179,180,182],"h2",{"id":181},"who-is-the-reader","Who is the reader",[184,185,186,187,191,192,196,197,200,201,204],"p",{},"Every decision is made for a ",[188,189,190],"strong",{},"reader",": the signed-in user for ",[193,194,195],"code",{},"controlled()"," and the policy, or the model you name with ",[193,198,199],{},"controlledFor()",". A reader is any Eloquent model: a ",[193,202,203],{},"User",", an API client, a member of another guard.",[206,207,208,221],"table",{},[209,210,211],"thead",{},[212,213,214,218],"tr",{},[215,216,217],"th",{},"Where",[215,219,220],{},"Reader",[222,223,224,240,253,267],"tbody",{},[212,225,226,234],{},[227,228,229,231,232],"td",{},[193,230,195],{},", a Scout search's ",[193,233,195],{},[227,235,236,239],{},[193,237,238],{},"Auth::user()",", or none for a guest",[212,241,242,247],{},[227,243,244],{},[193,245,246],{},"controlledFor($reader)",[227,248,249,250],{},"the model you pass, or none for ",[193,251,252],{},"null",[212,254,255,264],{},[227,256,257,260,261],{},[193,258,259],{},"$user->can()",", ",[193,262,263],{},"Gate::forUser($user)",[227,265,266],{},"that user",[212,268,269,280],{},[227,270,271,260,274,260,277],{},[193,272,273],{},"$this->authorize()",[193,275,276],{},"@can",[193,278,279],{},"Gate::allows()",[227,281,282],{},"the signed-in user",[184,284,285,286,260,289,292,293,296,297,300],{},"Without a reader, the controlled queries read no row. The perimeter callbacks receive the reader as their first parameter (",[193,287,288],{},"allowed()",[193,290,291],{},"should()",") or second (",[193,294,295],{},"query()","), and the hooks of a perimeter class read it with ",[193,298,299],{},"$context->reader()",".",[179,302,304],{"id":303},"readers-of-several-types","Readers of several types",[184,306,307],{},"A control can serve several types of readers. A perimeter whose callbacks type the reader applies only to the readers of that type, and the others skip it:",[309,310,315],"pre",{"className":311,"code":312,"language":313,"meta":314,"style":314},"language-php shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","protected function perimeters(): array\n{\n    return [\n        OwnPerimeter::new()\n            ->allowed(fn (User $user, Ability $ability) => $user->can(\"{$ability} own posts\"))\n            ->query(fn (Builder $query, User $user) => $query->where('author_id', $user->id)),\n        ClientAppPerimeter::new()\n            ->allowed(fn (ApiClient $client, Ability $ability) => $client->client_id !== null && $ability->is('view'))\n            ->query(fn (Builder $query, ApiClient $client) => $query->where('client_id', $client->client_id)),\n    ];\n}\n","php","",[193,316,317,341,347,357,373,447,514,526,597,658,664],{"__ignoreMap":314},[318,319,322,326,329,333,337],"span",{"class":320,"line":321},"line",1,[318,323,325],{"class":324},"spNyl","protected",[318,327,328],{"class":324}," function",[318,330,332],{"class":331},"s2Zo4"," perimeters",[318,334,336],{"class":335},"sMK4o","():",[318,338,340],{"class":339},"sbssI"," array\n",[318,342,344],{"class":320,"line":343},2,[318,345,346],{"class":335},"{\n",[318,348,350,354],{"class":320,"line":349},3,[318,351,353],{"class":352},"s7zQu","    return",[318,355,356],{"class":335}," [\n",[318,358,360,364,367,370],{"class":320,"line":359},4,[318,361,363],{"class":362},"sBMFI","        OwnPerimeter",[318,365,366],{"class":335},"::",[318,368,369],{"class":331},"new",[318,371,372],{"class":335},"()\n",[318,374,376,379,382,385,388,391,393,396,400,403,406,408,411,414,417,419,421,424,427,429,432,434,437,441,444],{"class":320,"line":375},5,[318,377,378],{"class":335},"            ->",[318,380,381],{"class":331},"allowed",[318,383,384],{"class":335},"(",[318,386,387],{"class":324},"fn",[318,389,390],{"class":335}," (",[318,392,203],{"class":362},[318,394,395],{"class":335}," $",[318,397,399],{"class":398},"sTEyZ","user",[318,401,402],{"class":335},",",[318,404,405],{"class":362}," Ability",[318,407,395],{"class":335},[318,409,410],{"class":398},"ability",[318,412,413],{"class":335},")",[318,415,416],{"class":335}," =>",[318,418,395],{"class":335},[318,420,399],{"class":398},[318,422,423],{"class":335},"->",[318,425,426],{"class":331},"can",[318,428,384],{"class":335},[318,430,431],{"class":335},"\"{$",[318,433,410],{"class":398},[318,435,436],{"class":335},"}",[318,438,440],{"class":439},"sfazB"," own posts",[318,442,443],{"class":335},"\"",[318,445,446],{"class":335},"))\n",[318,448,450,452,455,457,459,461,464,466,468,470,473,475,477,479,481,483,485,487,490,492,495,498,500,502,504,506,508,511],{"class":320,"line":449},6,[318,451,378],{"class":335},[318,453,454],{"class":331},"query",[318,456,384],{"class":335},[318,458,387],{"class":324},[318,460,390],{"class":335},[318,462,463],{"class":362},"Builder",[318,465,395],{"class":335},[318,467,454],{"class":398},[318,469,402],{"class":335},[318,471,472],{"class":362}," User",[318,474,395],{"class":335},[318,476,399],{"class":398},[318,478,413],{"class":335},[318,480,416],{"class":335},[318,482,395],{"class":335},[318,484,454],{"class":398},[318,486,423],{"class":335},[318,488,489],{"class":331},"where",[318,491,384],{"class":335},[318,493,494],{"class":335},"'",[318,496,497],{"class":439},"author_id",[318,499,494],{"class":335},[318,501,402],{"class":335},[318,503,395],{"class":335},[318,505,399],{"class":398},[318,507,423],{"class":335},[318,509,510],{"class":398},"id",[318,512,513],{"class":335},")),\n",[318,515,517,520,522,524],{"class":320,"line":516},7,[318,518,519],{"class":362},"        ClientAppPerimeter",[318,521,366],{"class":335},[318,523,369],{"class":331},[318,525,372],{"class":335},[318,527,529,531,533,535,537,539,542,544,547,549,551,553,555,557,559,561,563,565,568,571,574,577,579,581,583,586,588,590,593,595],{"class":320,"line":528},8,[318,530,378],{"class":335},[318,532,381],{"class":331},[318,534,384],{"class":335},[318,536,387],{"class":324},[318,538,390],{"class":335},[318,540,541],{"class":362},"ApiClient",[318,543,395],{"class":335},[318,545,546],{"class":398},"client",[318,548,402],{"class":335},[318,550,405],{"class":362},[318,552,395],{"class":335},[318,554,410],{"class":398},[318,556,413],{"class":335},[318,558,416],{"class":335},[318,560,395],{"class":335},[318,562,546],{"class":398},[318,564,423],{"class":335},[318,566,567],{"class":398},"client_id ",[318,569,570],{"class":335},"!==",[318,572,573],{"class":335}," null",[318,575,576],{"class":335}," &&",[318,578,395],{"class":335},[318,580,410],{"class":398},[318,582,423],{"class":335},[318,584,585],{"class":331},"is",[318,587,384],{"class":335},[318,589,494],{"class":335},[318,591,592],{"class":439},"view",[318,594,494],{"class":335},[318,596,446],{"class":335},[318,598,600,602,604,606,608,610,612,614,616,618,621,623,625,627,629,631,633,635,637,639,641,644,646,648,650,652,654,656],{"class":320,"line":599},9,[318,601,378],{"class":335},[318,603,454],{"class":331},[318,605,384],{"class":335},[318,607,387],{"class":324},[318,609,390],{"class":335},[318,611,463],{"class":362},[318,613,395],{"class":335},[318,615,454],{"class":398},[318,617,402],{"class":335},[318,619,620],{"class":362}," ApiClient",[318,622,395],{"class":335},[318,624,546],{"class":398},[318,626,413],{"class":335},[318,628,416],{"class":335},[318,630,395],{"class":335},[318,632,454],{"class":398},[318,634,423],{"class":335},[318,636,489],{"class":331},[318,638,384],{"class":335},[318,640,494],{"class":335},[318,642,643],{"class":439},"client_id",[318,645,494],{"class":335},[318,647,402],{"class":335},[318,649,395],{"class":335},[318,651,546],{"class":398},[318,653,423],{"class":335},[318,655,643],{"class":398},[318,657,513],{"class":335},[318,659,661],{"class":320,"line":660},10,[318,662,663],{"class":335},"    ];\n",[318,665,667],{"class":320,"line":666},11,[318,668,669],{"class":335},"}\n",[184,671,672,673,675,676,679,680,682,683,686,687,691,692,695],{},"A ",[193,674,203],{}," reaches only ",[193,677,678],{},"OwnPerimeter",", an ",[193,681,541],{}," only ",[193,684,685],{},"ClientAppPerimeter",", and any other reader no perimeter, so no row. The same goes for a ",[688,689,690],"a",{"href":51},"boundary"," declared with ",[193,693,694],{},"Boundary::where()",": a reader whose type its closure does not accept is refused everything.",[697,698,699,703,717],"ul",{},[700,701,702],"li",{},"A class, a nullable class, an interface, a union or an intersection narrows the readers.",[700,704,705,706,260,709,712,713,716],{},"An untyped parameter, ",[193,707,708],{},"Model",[193,710,711],{},"object"," or ",[193,714,715],{},"mixed"," accepts every reader.",[700,718,719],{},"Type every callback of a perimeter with the same reader type: the perimeter is skipped when any of them refuses the reader.",[179,721,723],{"id":722},"the-decision-context","The decision context",[184,725,726,727,730],{},"Some decisions depend on more than the reader: the current team of a permission package, the brand or the tenant that the request works in. Declare these values once, in the ",[193,728,729],{},"boot()"," method of a service provider:",[309,732,734],{"className":311,"code":733,"language":313,"meta":314,"style":314},"use Lomkit\\Access\\Access;\n\npublic function boot(): void\n{\n    Access::decisionContextUsing(fn (): array => ['team' => Team::current()?->id]);\n}\n",[193,735,736,757,763,778,782,832],{"__ignoreMap":314},[318,737,738,741,744,747,750,752,754],{"class":320,"line":321},[318,739,740],{"class":339},"use",[318,742,743],{"class":398}," Lomkit",[318,745,746],{"class":335},"\\",[318,748,749],{"class":398},"Access",[318,751,746],{"class":335},[318,753,749],{"class":398},[318,755,756],{"class":335},";\n",[318,758,759],{"class":320,"line":343},[318,760,762],{"emptyLinePlaceholder":761},true,"\n",[318,764,765,768,770,773,775],{"class":320,"line":349},[318,766,767],{"class":324},"public",[318,769,328],{"class":324},[318,771,772],{"class":331}," boot",[318,774,336],{"class":335},[318,776,777],{"class":339}," void\n",[318,779,780],{"class":320,"line":359},[318,781,346],{"class":335},[318,783,784,787,789,792,794,796,799,802,804,807,809,812,814,816,819,821,824,827,829],{"class":320,"line":375},[318,785,786],{"class":362},"    Access",[318,788,366],{"class":335},[318,790,791],{"class":331},"decisionContextUsing",[318,793,384],{"class":335},[318,795,387],{"class":324},[318,797,798],{"class":335}," ():",[318,800,801],{"class":339}," array",[318,803,416],{"class":335},[318,805,806],{"class":335}," [",[318,808,494],{"class":335},[318,810,811],{"class":439},"team",[318,813,494],{"class":335},[318,815,416],{"class":335},[318,817,818],{"class":362}," Team",[318,820,366],{"class":335},[318,822,823],{"class":331},"current",[318,825,826],{"class":335},"()?->",[318,828,510],{"class":398},[318,830,831],{"class":335},"]);\n",[318,833,834],{"class":320,"line":449},[318,835,669],{"class":335},[697,837,838,844,850],{},[700,839,840,841,300],{},"The resolver returns an array of strings, ints, booleans or nulls, keyed by name. Anything else, such as a model, throws ",[193,842,843],{},"InvalidDecisionContextException",[700,845,846,847,300],{},"The hooks of a perimeter or boundary class read it with ",[193,848,849],{},"$context->decisionContext()",[700,851,852],{},"Without a resolver, the context is empty.",[184,854,855,856,862,863,866],{},"The package files the decisions it keeps under this context, so a decision made for one team is never reused for another. ",[188,857,858,859,861],{},"Everything ",[193,860,288],{}," reads besides the reader belongs in the decision context",", such as the team that ",[193,864,865],{},"setPermissionsTeamId()"," sets, a tenant or a guard chosen during the request.",[179,868,146],{"id":869},"kept-decisions",[184,871,872],{},"Within a request, a queued job or a console command, the package keeps what it decided:",[697,874,875,881],{},[700,876,877,878,880],{},"the perimeters a reader reaches: what each ",[193,879,288],{}," answered, and the level reached in each group, for each reader, ability and decision context;",[700,882,883],{},"the SQL check of each row, for each reader, decision context and ability.",[184,885,886,887,889,890,892],{},"So an ",[193,888,288],{}," that queries runs once per reader, ability and context, not once per row, and the policy, the controlled queries and the search filter share its answer: they always agree within a request. The in-memory checks, ",[193,891,291],{}," and the boundary, run on every decision.",[184,894,895],{},"Everything kept is forgotten at once:",[697,897,898,917,920],{},[700,899,900,901,260,904,907,908,911,912,916],{},"after any SQL statement that is not a read, on any connection: Eloquent saves and deletes, mass updates, ",[193,902,903],{},"attach()",[193,905,906],{},"DB::table()"," and ",[193,909,910],{},"DB::statement()"," writes included, with or without model events. The writes of Laravel's own tables, such as the cache, the sessions and the queues, are the exception, see ",[688,913,915],{"href":914},"\u002Fdigging-deeper\u002Fdecisions#laravels-own-tables","Laravel's own tables",";",[700,918,919],{},"when a transaction rolls back, once a request is handled, and at the end of each job;",[700,921,922,923,300],{},"when you call ",[193,924,925],{},"Access::forgetDecisions()",[184,927,928],{},"A reader that is not saved, or has no key, is never kept: its perimeters are evaluated on every decision.",[184,930,931,932,934],{},"Call ",[193,933,925],{}," yourself when a decision changes without a write through Laravel:",[697,936,937,940],{},[700,938,939],{},"in a long console command, at the start of each unit of work, such as each tenant, since it never sees a permission revoked by another process;",[700,941,942,943,946],{},"in a test, after ",[193,944,945],{},"Gate::define()"," changes a permission between two checks.",[184,948,949],{},"The tests need no reset: each test starts with no kept decision.",[179,951,953],{"id":952},"what-digging-deeper-covers","What Digging deeper covers",[184,955,956],{},"These pages keep to what most applications need. The Digging deeper section covers the rest:",[697,958,959,977,983],{},[700,960,961,260,964,907,967,970,971,916],{},[688,962,963],{"href":151},"the batched decisions",[193,965,966],{},"Access::preload()",[193,968,969],{},"reachableKeys()",", next to ",[688,972,974],{"href":973},"\u002Fessentials\u002Fqueries#deciding-the-rows-of-a-page",[193,975,976],{},"withAbilities()",[700,978,979,982],{},[688,980,981],{"href":914},"the writes of Laravel's own tables",", such as the cache, the sessions and the queues, which do not forget the kept decisions;",[700,984,985,988,989,300],{},[688,986,987],{"href":159},"lists that span several brands",", and ",[688,990,991],{"href":163},"a parent decided in the context of the child row",[993,994,995],"style",{},"html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}html pre.shiki code .s7zQu, html code.shiki .s7zQu{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic}html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}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":314,"searchDepth":321,"depth":343,"links":997},[998,999,1000,1001,1002],{"id":181,"depth":343,"text":182},{"id":303,"depth":343,"text":304},{"id":722,"depth":343,"text":723},{"id":869,"depth":343,"text":146},{"id":952,"depth":343,"text":953},"The reader is the model a decision is made for. Learn about readers of several types, the decision context, and the decisions kept for a request.","md",null,{},{"title":66,"description":1003},{"loc":67,"lastmod":1009},"2026-11-21T15:24:08+01:00","f2qXblQMRrffsxXXf0ILqOtbBKvF-Sn56CCOvJQ2rjg",[1012,1014],{"title":62,"path":63,"stem":64,"description":1013,"children":-1},"controlled(), controlledFor() and uncontrolled() filter your Eloquent queries in SQL with the control of the model. A query is controlled only when it says so.",{"title":76,"path":77,"stem":78,"description":1015,"children":-1},"A controlled Laravel Scout search keeps, in one engine query, the documents the reader may view: each document carries the keys that open it.",1795277181125]