[{"data":1,"prerenderedAt":1127},["ShallowReactive",2],{"navigation":3,"\u002Ftesting-and-tooling\u002Faccess-check":173,"\u002Ftesting-and-tooling\u002Faccess-check-surround":1122},[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":124,"body":175,"description":1114,"extension":1115,"links":1116,"meta":1117,"navigation":352,"path":125,"seo":1118,"sitemap":1119,"stem":126,"updatedAt":1120,"__hash__":1121},"docs\u002F5.testing-and-tooling\u002F2.access-check.md",{"type":176,"value":177,"toc":1106},"minimark",[178,215,221,360,387,465,476,481,718,722,813,820,824,884,903,908,913,1051,1064,1068,1071,1102],[179,180,185],"pre",{"className":181,"code":182,"language":183,"meta":184,"style":184},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","SCOUT_DRIVER=meilisearch php artisan access:check\n","bash","",[186,187,188],"code",{"__ignoreMap":184},[189,190,193,197,201,205,209,212],"span",{"class":191,"line":192},"line",1,[189,194,196],{"class":195},"sTEyZ","SCOUT_DRIVER",[189,198,200],{"class":199},"sMK4o","=",[189,202,204],{"class":203},"sfazB","meilisearch",[189,206,208],{"class":207},"sBMFI"," php",[189,210,211],{"class":203}," artisan",[189,213,214],{"class":203}," access:check\n",[216,217,218,220],"p",{},[186,219,124],{}," builds every discovered control, declares and verifies its perimeters whatever the environment, and reports what would throw, open or hide rows, or leave search documents stale, before production meets it. Run it in CI with the Scout driver of production: the engine checks use the driver of the environment the command runs in.",[179,222,226],{"className":223,"code":224,"language":225,"meta":184,"style":184},"language-txt shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","  controls  2 built from app\u002FAccess\u002FControls\n  cache ................................................................. not cached\n  models ................................................ 2 scanned in app\u002FModels\n  scout driver ........................ meilisearch, from the config of this environment\n  pivots ............ 1 BelongsToMany relation with a declared return type scanned\n  App\\Access\\Controls\\PostControl  App\\Models\\Post\n  #1.1 GlobalPerimeter ........................................ memory, unrestricted\n  #1.2 ClientPerimeter .................................... sql, search keys client\n  #2 SharedPerimeter .................................................... memory\n  boundary ...................... Lomkit\\Access\\Boundaries\\ColumnBoundary, memory, searchable\n  search ................ ControlledSearchable on Laravel\\Scout\\Engines\\MeilisearchEngine\n  policy ................................................ App\\Policies\\PostPolicy, controlled\n  App\\Access\\Controls\\CommentControl  App\\Models\\Comment\n  #1 ThroughParent [post] ....... sql, update from the parent's update, view from the parent's view\n  boundary ...................................................................... none\n  search ................................................................ not searchable\n  policy ............................. Lomkit\\Access\\Policies\\AutomaticPolicy, automatic\n  problems .................................................................. 1 FAILED\n  ⇂ The [App\\Access\\Perimeters\\SharedPerimeter] perimeter at #2 of the [App\\Access\\Controls\\PostControl] control declares no search keys, so a reader that only this perimeter reaches finds none of its [App\\Models\\Post] rows in a controlled text search. Declare searchKeys() on the perimeter, or unrestricted() if it reaches every row\n  notes ........................................................................ none\n\n   ERROR  1 problem found.\n","txt",[186,227,228,233,239,245,251,257,263,269,275,281,287,293,299,305,311,317,323,329,335,341,347,354],{"__ignoreMap":184},[189,229,230],{"class":191,"line":192},[189,231,232],{},"  controls  2 built from app\u002FAccess\u002FControls\n",[189,234,236],{"class":191,"line":235},2,[189,237,238],{},"  cache ................................................................. not cached\n",[189,240,242],{"class":191,"line":241},3,[189,243,244],{},"  models ................................................ 2 scanned in app\u002FModels\n",[189,246,248],{"class":191,"line":247},4,[189,249,250],{},"  scout driver ........................ meilisearch, from the config of this environment\n",[189,252,254],{"class":191,"line":253},5,[189,255,256],{},"  pivots ............ 1 BelongsToMany relation with a declared return type scanned\n",[189,258,260],{"class":191,"line":259},6,[189,261,262],{},"  App\\Access\\Controls\\PostControl  App\\Models\\Post\n",[189,264,266],{"class":191,"line":265},7,[189,267,268],{},"  #1.1 GlobalPerimeter ........................................ memory, unrestricted\n",[189,270,272],{"class":191,"line":271},8,[189,273,274],{},"  #1.2 ClientPerimeter .................................... sql, search keys client\n",[189,276,278],{"class":191,"line":277},9,[189,279,280],{},"  #2 SharedPerimeter .................................................... memory\n",[189,282,284],{"class":191,"line":283},10,[189,285,286],{},"  boundary ...................... Lomkit\\Access\\Boundaries\\ColumnBoundary, memory, searchable\n",[189,288,290],{"class":191,"line":289},11,[189,291,292],{},"  search ................ ControlledSearchable on Laravel\\Scout\\Engines\\MeilisearchEngine\n",[189,294,296],{"class":191,"line":295},12,[189,297,298],{},"  policy ................................................ App\\Policies\\PostPolicy, controlled\n",[189,300,302],{"class":191,"line":301},13,[189,303,304],{},"  App\\Access\\Controls\\CommentControl  App\\Models\\Comment\n",[189,306,308],{"class":191,"line":307},14,[189,309,310],{},"  #1 ThroughParent [post] ....... sql, update from the parent's update, view from the parent's view\n",[189,312,314],{"class":191,"line":313},15,[189,315,316],{},"  boundary ...................................................................... none\n",[189,318,320],{"class":191,"line":319},16,[189,321,322],{},"  search ................................................................ not searchable\n",[189,324,326],{"class":191,"line":325},17,[189,327,328],{},"  policy ............................. Lomkit\\Access\\Policies\\AutomaticPolicy, automatic\n",[189,330,332],{"class":191,"line":331},18,[189,333,334],{},"  problems .................................................................. 1 FAILED\n",[189,336,338],{"class":191,"line":337},19,[189,339,340],{},"  ⇂ The [App\\Access\\Perimeters\\SharedPerimeter] perimeter at #2 of the [App\\Access\\Controls\\PostControl] control declares no search keys, so a reader that only this perimeter reaches finds none of its [App\\Models\\Post] rows in a controlled text search. Declare searchKeys() on the perimeter, or unrestricted() if it reaches every row\n",[189,342,344],{"class":191,"line":343},20,[189,345,346],{},"  notes ........................................................................ none\n",[189,348,350],{"class":191,"line":349},21,[189,351,353],{"emptyLinePlaceholder":352},true,"\n",[189,355,357],{"class":191,"line":356},22,[189,358,359],{},"   ERROR  1 problem found.\n",[216,361,362,363,366,367,370,371,374,375,378,379,382,383,386],{},"Each control is listed with its model, its perimeters by position (",[186,364,365],{},"#1.2"," is the second level of the first group), the mode of each perimeter (",[186,368,369],{},"memory"," with a ",[186,372,373],{},"should()"," callback, ",[186,376,377],{},"sql"," without), its boundary, its ",[186,380,381],{},"ThroughParent"," relations and their delegated abilities, the search engine of a ",[186,384,385],{},"ControlledSearchable"," model, and its policy:",[388,389,390,403],"table",{},[391,392,393],"thead",{},[394,395,396,400],"tr",{},[397,398,399],"th",{},"Policy form",[397,401,402],{},"Meaning",[404,405,406,420,433,445,455],"tbody",{},[394,407,408,414],{},[409,410,411],"td",{},[186,412,413],{},"controlled",[409,415,416,417],{},"A policy that extends ",[186,418,419],{},"ControlledPolicy",[394,421,422,427],{},[409,423,424],{},[186,425,426],{},"automatic",[409,428,429,430],{},"Registered by ",[186,431,432],{},"Access::registerPolicies()",[394,434,435,440],{},[409,436,437],{},[186,438,439],{},"own",[409,441,442,443],{},"A policy that does not extend ",[186,444,419],{},[394,446,447,452],{},[409,448,449],{},[186,450,451],{},"none",[409,453,454],{},"No policy",[394,456,457,462],{},[409,458,459],{},[186,460,461],{},"unresolvable",[409,463,464],{},"The Gate throws while it resolves the policy",[216,466,467,468,471,472,475],{},"The command exits with ",[186,469,470],{},"1"," when it finds a problem, ",[186,473,474],{},"0"," otherwise. Notes never change the exit code.",[477,478,480],"h2",{"id":479},"problems","Problems",[388,482,483,493],{},[391,484,485],{},[394,486,487,490],{},[397,488,489],{},"Kind",[397,491,492],{},"Reported when",[404,494,495,508,522,536,548,558,572,582,599,609,625,642,652,665,687,708],{},[394,496,497,502],{},[409,498,499],{},[186,500,501],{},"control_failure",[409,503,504,505,507],{},"Building a control, its declaration or the verification of its perimeters throws: impure perimeters, empty or nested levels, a ",[186,506,381],{}," on a missing relation, a cycle, a parent without control, an invalid delegation, a duplicate search key name, a control without model. The message quotes the exception.",[394,509,510,515],{},[409,511,512],{},[186,513,514],{},"duplicate_control",[409,516,517,518,521],{},"Two discovered controls, or a discovered control and ",[186,519,520],{},"#[ControlledBy]",", declare the same model.",[394,523,524,529],{},[409,525,526],{},[186,527,528],{},"uncontrolled_model",[409,530,531,532,535],{},"A model of the scanned directories uses ",[186,533,534],{},"HasControl"," and has no control.",[394,537,538,543],{},[409,539,540],{},[186,541,542],{},"invalid_controlled_by",[409,544,545,547],{},[186,546,520],{}," names a class that is not a control, or the control of another model.",[394,549,550,555],{},[409,551,552],{},[186,553,554],{},"stale_control_cache",[409,556,557],{},"The cache maps the models to other controls than the discovered ones.",[394,559,560,565],{},[409,561,562],{},[186,563,564],{},"stale_watch_cache",[409,566,567,568,571],{},"The controls are cached, and the cache of the watched models is missing, unreadable, or lists other models than the ",[186,569,570],{},"reindexWhen()"," rules of the controls.",[394,573,574,579],{},[409,575,576],{},[186,577,578],{},"unresolvable_policy",[409,580,581],{},"The Gate throws while it resolves the policy of a controlled model.",[394,583,584,589],{},[409,585,586],{},[186,587,588],{},"policy_without_control",[409,590,591,592,594,595,598],{},"The policy of a controlled model extends ",[186,593,419],{}," without ",[186,596,597],{},"$control",".",[394,600,601,606],{},[409,602,603],{},[186,604,605],{},"policy_for_another_control",[409,607,608],{},"That policy names another control than the one of its model.",[394,610,611,616],{},[409,612,613],{},[186,614,615],{},"plain_searchable",[409,617,618,619,622,623,598],{},"A controlled model uses Scout's ",[186,620,621],{},"Searchable"," instead of ",[186,624,385],{},[394,626,627,632],{},[409,628,629],{},[186,630,631],{},"unsupported_search_engine",[409,633,634,635,637,638,641],{},"The engine of a ",[186,636,385],{}," model cannot filter a controlled search: not supported nor trusted, the ",[186,639,640],{},"collection"," engine, or an engine that throws when it is built.",[394,643,644,649],{},[409,645,646],{},[186,647,648],{},"unsearchable_boundary",[409,650,651],{},"On an engine that stores documents, the boundary has no search form.",[394,653,654,659],{},[409,655,656],{},[186,657,658],{},"perimeter_without_search_keys",[409,660,661,662,664],{},"On an engine that stores documents, a perimeter that is neither unrestricted nor a ",[186,663,381],{}," declares no search keys. The problem names the position of the perimeter.",[394,666,667,672],{},[409,668,669],{},[186,670,671],{},"search_freshness",[409,673,674,675,678,679,682,683,686],{},"Something would leave documents stale: Scout's ",[186,676,677],{},"after_commit"," off, ",[186,680,681],{},"makeSearchableUsing()"," overridden without ",[186,684,685],{},"withAccessKeys()",", a relation that the search keys read and that nothing reindexes.",[394,688,689,694],{},[409,690,691],{},[186,692,693],{},"pivot_without_using",[409,695,696,697,700,701,594,704,707],{},"A ",[186,698,699],{},"BelongsToMany"," relation reaches the table of a pivot that uses ",[186,702,703],{},"ReindexesSearch",[186,705,706],{},"->using()"," it.",[394,709,710,715],{},[409,711,712],{},[186,713,714],{},"unreadable_relation",[409,716,717],{},"A relation that the command reads throws when it is read without a database connection.",[477,719,721],{"id":720},"notes","Notes",[388,723,724,732],{},[391,725,726],{},[394,727,728,730],{},[397,729,489],{},[397,731,492],{},[404,733,734,751,764,774,803],{},[394,735,736,741],{},[409,737,738],{},[186,739,740],{},"inherited_memory_perimeters",[409,742,743,744,747,748,750],{},"Two discovered controls or more inherit ",[186,745,746],{},"perimeters()"," from a base class whose perimeters have a ",[186,749,373],{}," callback.",[394,752,753,758],{},[409,754,755],{},[186,756,757],{},"policy_outside_control",[409,759,760,761,763],{},"The policy of a controlled model does not extend ",[186,762,419],{},", so the package cannot check that it names the model's control.",[394,765,766,771],{},[409,767,768],{},[186,769,770],{},"model_without_policy",[409,772,773],{},"No policy is registered for a controlled model.",[394,775,776,781],{},[409,777,778],{},[186,779,780],{},"ungrantable_drafts",[409,782,783,784,789,790,792,793,796,797,799,800,598],{},"No perimeter of a control can grant a ",[785,786,788],"a",{"href":787},"\u002Fessentials\u002Fpolicies#drafts","draft",": none has a ",[186,791,373],{}," callback or an ",[186,794,795],{},"includes()"," hook, none is unrestricted, and no ",[186,798,381],{}," delegates ",[186,801,802],{},"create",[394,804,805,810],{},[409,806,807],{},[186,808,809],{},"boundary_refusing_drafts",[409,811,812],{},"The boundary of a control has no in-memory form, so it refuses every draft.",[216,814,815,816,819],{},"When a kind has more than five notes, the human output prints them on one line, with their count, the base classes they share and the first three subjects. Problems are never grouped, and ",[186,817,818],{},"--json"," lists every note. No attribute, interface or option silences a note: fix what it reports, or read it in the JSON.",[477,821,823],{"id":822},"options","Options",[388,825,826,836],{},[391,827,828],{},[394,829,830,833],{},[397,831,832],{},"Option",[397,834,835],{},"Effect",[404,837,838,847,860],{},[394,839,840,844],{},[409,841,842],{},[186,843,818],{},[409,845,846],{},"Prints the same report as one JSON document.",[394,848,849,854],{},[409,850,851],{},[186,852,853],{},"--only=App\\Models\\Post",[409,855,856,857,598],{},"Checks only these controls, given by model or control class, repeatable. The discovery, the cache and the pivots are always checked. A name that matches no control exits with ",[186,858,859],{},"2",[394,861,862,867],{},[409,863,864],{},[186,865,866],{},"--models=app\u002FDomain\u002FModels",[409,868,869,870,872,873,875,876,879,880,883],{},"Sets the directories scanned for models that use ",[186,871,534],{}," or ",[186,874,520],{},", ",[186,877,878],{},"app\u002FModels"," by default, repeatable. Globs are accepted, such as ",[186,881,882],{},"--models='modules\u002F*\u002Fsrc\u002FModels'",", resolved from the working directory.",[216,885,886,887,890,891,893,894,896,897,899,900,902],{},"The scan of ",[186,888,889],{},"--models"," adds what discovery cannot see: the models that use ",[186,892,534],{}," without a control, the controls that a scanned model names with ",[186,895,520],{}," outside the discovered directories, which are then checked like the others, and the ",[186,898,699],{}," relations of the scanned models, for ",[186,901,693],{},". The models of the discovered controls are always checked, wherever they live.",[904,905,907],"h3",{"id":906},"the-json-report","The JSON report",[216,909,910,912],{},[186,911,818],{}," gives:",[914,915,916,923,944,1018,1026,1041],"ul",{},[917,918,919,922],"li",{},[186,920,921],{},"passed",";",[917,924,925,928,929,875,932,875,935,875,938,875,941,922],{},[186,926,927],{},"discovery",": ",[186,930,931],{},"paths",[186,933,934],{},"cached",[186,936,937],{},"models",[186,939,940],{},"scanned",[186,942,943],{},"scout_driver",[917,945,946,949,950,875,953,875,956,959,960,875,963,875,966,875,969,875,972,875,975,978,979,875,982,985,986,989,990,959,993,875,995,875,997,989,1000,959,1003,875,1005,1008,1009,959,1012,875,1014,1017],{},[186,947,948],{},"controls",": each with ",[186,951,952],{},"control",[186,954,955],{},"model",[186,957,958],{},"perimeters"," (",[186,961,962],{},"position",[186,964,965],{},"perimeter",[186,967,968],{},"mode",[186,970,971],{},"unrestricted",[186,973,974],{},"search_keys",[186,976,977],{},"parent"," with ",[186,980,981],{},"relation",[186,983,984],{},"delegates"," and ",[186,987,988],{},"allowed","), ",[186,991,992],{},"boundary",[186,994,992],{},[186,996,968],{},[186,998,999],{},"searchable",[186,1001,1002],{},"search",[186,1004,999],{},[186,1006,1007],{},"engine",") and ",[186,1010,1011],{},"policy",[186,1013,1011],{},[186,1015,1016],{},"form",");",[917,1019,1020,928,1023,922],{},[186,1021,1022],{},"pivots",[186,1024,1025],{},"relations",[917,1027,1028,928,1030,875,1033,875,1036,985,1038,922],{},[186,1029,479],{},[186,1031,1032],{},"kind",[186,1034,1035],{},"subject",[186,1037,962],{},[186,1039,1040],{},"message",[917,1042,1043,928,1045,875,1047,985,1049,598],{},[186,1044,720],{},[186,1046,1032],{},[186,1048,1035],{},[186,1050,1040],{},[216,1052,1053,1054,985,1057,1060,1061,1063],{},"There is no runtime list of the controls: for an inventory, in CI or in a review, read ",[186,1055,1056],{},"controls[].model",[186,1058,1059],{},"controls[].control",", with ",[186,1062,889],{}," covering every directory that holds a controlled model.",[477,1065,1067],{"id":1066},"what-it-does-not-do","What it does not do",[216,1069,1070],{},"The command is read-only: it never writes the cache, runs no query and dispatches no job. It builds the controls, resolves the policies and the Scout engines, and reads the relations without a database connection.",[914,1072,1073,1090,1099],{},[917,1074,1075,1076,1078,1079,1082,1083,1089],{},"It cannot tell whether a ",[186,1077,373],{}," callback describes the same rows as its ",[186,1080,1081],{},"query()",", or reads a relation: ",[785,1084,1086],{"href":1085},"\u002Ftesting-and-tooling\u002Ftesting#the-decisions",[186,1087,1088],{},"assertControlAgrees()"," proves the first on your test data.",[917,1091,1092,1093,1095,1096,598],{},"The pivot check only sees the public relation methods that declare a ",[186,1094,699],{}," return type, or a subclass such as ",[186,1097,1098],{},"MorphToMany",[917,1100,1101],{},"A minor release may add problems and notes, so a CI that passed may fail after it, as with the new rules of a linter.",[1103,1104,1105],"style",{},"html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}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":184,"searchDepth":192,"depth":235,"links":1107},[1108,1109,1110,1113],{"id":479,"depth":235,"text":480},{"id":720,"depth":235,"text":721},{"id":822,"depth":235,"text":823,"children":1111},[1112],{"id":906,"depth":241,"text":907},{"id":1066,"depth":235,"text":1067},"php artisan access:check builds every control and reports in CI what would throw, open or hide rows, or leave search documents stale.","md",null,{},{"title":124,"description":1114},{"loc":125,"lastmod":1120},"2026-11-21T15:24:08+01:00","foxjvKAyU_nqWaViuO1oefa5vUT9REAoEnebzEQ27zo",[1123,1125],{"title":120,"path":121,"stem":122,"description":1124,"children":-1},"The InteractsWithAccess assertions prove on your test data that the levels nest, the policy and the queries agree, and the search finds what the SQL lists.",{"title":128,"path":129,"stem":130,"description":1126,"children":-1},"Cache the control of each model with access:cache in every deployment, and read the state of the package in the Access Control section of php artisan about.",1795277181714]