[{"data":1,"prerenderedAt":523},["ShallowReactive",2],{"navigation":3,"\u002Fcommands\u002Fosdd-seed":193,"\u002Fcommands\u002Fosdd-seed-surround":518},[4,27,49,99,149,169,183],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":26},"Getting Started","i-lucide-rocket","\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},"Existing Application","\u002Fgetting-started\u002Fexisting-application","1.getting-started\u002F4.existing-application",false,{"title":28,"icon":29,"path":30,"stem":31,"children":32,"page":26},"Concepts","i-lucide-layers","\u002Fconcepts","2.concepts",[33,37,41,45],{"title":34,"path":35,"stem":36},"Layers","\u002Fconcepts\u002Flayers","2.concepts\u002F1.layers",{"title":38,"path":39,"stem":40},"Buckets","\u002Fconcepts\u002Fbuckets","2.concepts\u002F2.buckets",{"title":42,"path":43,"stem":44},"Boundaries","\u002Fconcepts\u002Fboundaries","2.concepts\u002F3.boundaries",{"title":46,"path":47,"stem":48},"Service Providers","\u002Fconcepts\u002Fservice-providers","2.concepts\u002F4.service-providers",{"title":50,"icon":51,"path":52,"stem":53,"children":54,"page":26},"Guides","i-lucide-book-marked","\u002Fguides","3.guides",[55,59,63,67,71,75,79,83,87,91,95],{"title":56,"path":57,"stem":58},"Add a Domain","\u002Fguides\u002Fadd-a-domain","3.guides\u002F01.add-a-domain",{"title":60,"path":61,"stem":62},"Share Code Between Layers","\u002Fguides\u002Fshare-code-between-layers","3.guides\u002F02.share-code-between-layers",{"title":64,"path":65,"stem":66},"Routes","\u002Fguides\u002Froutes","3.guides\u002F03.routes",{"title":68,"path":69,"stem":70},"Views and Components","\u002Fguides\u002Fviews-and-components","3.guides\u002F04.views-and-components",{"title":72,"path":73,"stem":74},"Seeders","\u002Fguides\u002Fseeders","3.guides\u002F05.seeders",{"title":76,"path":77,"stem":78},"Configuration","\u002Fguides\u002Fconfiguration","3.guides\u002F06.configuration",{"title":80,"path":81,"stem":82},"Events","\u002Fguides\u002Fevents","3.guides\u002F07.events",{"title":84,"path":85,"stem":86},"Tests and CI","\u002Fguides\u002Ftesting-and-ci","3.guides\u002F08.testing-and-ci",{"title":88,"path":89,"stem":90},"Production","\u002Fguides\u002Fproduction","3.guides\u002F09.production",{"title":92,"path":93,"stem":94},"Remove a Layer","\u002Fguides\u002Fremoving-a-layer","3.guides\u002F10.removing-a-layer",{"title":96,"path":97,"stem":98},"Multi-tenancy","\u002Fguides\u002Fmulti-tenancy","3.guides\u002F11.multi-tenancy",{"title":100,"icon":101,"path":102,"stem":103,"children":104,"page":26},"Commands","i-lucide-terminal","\u002Fcommands","4.commands",[105,109,113,117,121,125,129,133,137,141,145],{"title":106,"path":107,"stem":108},"Overview","\u002Fcommands\u002Foverview","4.commands\u002F01.overview",{"title":110,"path":111,"stem":112},"osdd:start","\u002Fcommands\u002Fosdd-start","4.commands\u002F02.osdd-start",{"title":114,"path":115,"stem":116},"osdd:layer","\u002Fcommands\u002Fosdd-layer","4.commands\u002F03.osdd-layer",{"title":118,"path":119,"stem":120},"osdd:list","\u002Fcommands\u002Fosdd-list","4.commands\u002F04.osdd-list",{"title":122,"path":123,"stem":124},"osdd:check","\u002Fcommands\u002Fosdd-check","4.commands\u002F05.osdd-check",{"title":126,"path":127,"stem":128},"osdd:graph","\u002Fcommands\u002Fosdd-graph","4.commands\u002F06.osdd-graph",{"title":130,"path":131,"stem":132},"osdd:seed","\u002Fcommands\u002Fosdd-seed","4.commands\u002F07.osdd-seed",{"title":134,"path":135,"stem":136},"osdd:phpunit","\u002Fcommands\u002Fosdd-phpunit","4.commands\u002F08.osdd-phpunit",{"title":138,"path":139,"stem":140},"osdd:remove","\u002Fcommands\u002Fosdd-remove","4.commands\u002F09.osdd-remove",{"title":142,"path":143,"stem":144},"osdd:cache","\u002Fcommands\u002Fosdd-cache","4.commands\u002F10.osdd-cache",{"title":146,"path":147,"stem":148},"Generators","\u002Fcommands\u002Fmake-commands","4.commands\u002F11.make-commands",{"title":150,"icon":151,"path":152,"stem":153,"children":154,"page":26},"API Reference","i-lucide-book-open","\u002Fapi-reference","5.api-reference",[155,159,162,166],{"title":156,"path":157,"stem":158},"LayerServiceProvider","\u002Fapi-reference\u002Flayer-service-provider","5.api-reference\u002F1.layer-service-provider",{"title":34,"path":160,"stem":161},"\u002Fapi-reference\u002Flayers","5.api-reference\u002F2.layers",{"title":163,"path":164,"stem":165},"SeederRegistry","\u002Fapi-reference\u002Fseeder-registry","5.api-reference\u002F3.seeder-registry",{"title":76,"path":167,"stem":168},"\u002Fapi-reference\u002Fconfiguration","5.api-reference\u002F4.configuration",{"title":170,"icon":171,"path":172,"stem":173,"children":174,"page":26},"Integrations","i-lucide-puzzle","\u002Fintegrations","6.integrations",[175,179],{"title":176,"path":177,"stem":178},"Laravel Boost","\u002Fintegrations\u002Flaravel-boost","6.integrations\u002F1.laravel-boost",{"title":180,"path":181,"stem":182},"Tinker and IDE Helper","\u002Fintegrations\u002Ftinker-and-ide-helper","6.integrations\u002F2.tinker-and-ide-helper",{"title":184,"icon":185,"path":186,"stem":187,"children":188,"page":26},"Upgrade","i-lucide-arrow-up-circle","\u002Fupgrade","7.upgrade",[189],{"title":190,"path":191,"stem":192},"Upgrade from 2.x","\u002Fupgrade\u002Ffrom-2x","7.upgrade\u002F1.from-2x",{"id":194,"title":130,"body":195,"description":510,"extension":511,"links":512,"meta":513,"navigation":514,"path":131,"seo":515,"sitemap":516,"stem":132,"__hash__":517},"docs\u002F4.commands\u002F07.osdd-seed.md",{"type":196,"value":197,"toc":504},"minimark",[198,209,234,239,316,366,389,393,398,415,428,439,443,471,487,491,500],[199,200,201,204,205,208],"p",{},[202,203,130],"code",{}," runs every seeder a layer registered with ",[202,206,207],{},"loadSeeders()",", in priority order.",[210,211,216],"pre",{"className":212,"code":213,"language":214,"meta":215,"style":215},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","php artisan osdd:seed\n","bash","",[202,217,218],{"__ignoreMap":215},[219,220,223,227,231],"span",{"class":221,"line":222},"line",1,[219,224,226],{"class":225},"sBMFI","php",[219,228,230],{"class":229},"sfazB"," artisan",[219,232,233],{"class":229}," osdd:seed\n",[235,236,238],"h2",{"id":237},"options","Options",[240,241,242,255],"table",{},[243,244,245],"thead",{},[246,247,248,252],"tr",{},[249,250,251],"th",{},"Option",[249,253,254],{},"Description",[256,257,258,269,283,296,306],"tbody",{},[246,259,260,266],{},[261,262,263],"td",{},[202,264,265],{},"--layer",[261,267,268],{},"Only run the seeders of these layers. Full or package name, repeated or comma-separated.",[246,270,271,276],{},[261,272,273],{},[202,274,275],{},"--fresh",[261,277,278,279,282],{},"Run ",[202,280,281],{},"migrate:fresh"," before seeding: drop every table and run every migration.",[246,284,285,290],{},[261,286,287],{},[202,288,289],{},"--refresh",[261,291,278,292,295],{},[202,293,294],{},"migrate:refresh"," before seeding: roll back and run every migration.",[246,297,298,303],{},[261,299,300],{},[202,301,302],{},"--database",[261,304,305],{},"The database connection to migrate and seed.",[246,307,308,313],{},[261,309,310],{},[202,311,312],{},"--force",[261,314,315],{},"Run in production without asking.",[210,317,319],{"className":212,"code":318,"language":214,"meta":215,"style":215},"php artisan osdd:seed --fresh\nphp artisan osdd:seed --fresh --force --database=reporting\nphp artisan osdd:seed --layer=functional\u002Forders --layer=billing\n",[202,320,321,333,351],{"__ignoreMap":215},[219,322,323,325,327,330],{"class":221,"line":222},[219,324,226],{"class":225},[219,326,230],{"class":229},[219,328,329],{"class":229}," osdd:seed",[219,331,332],{"class":229}," --fresh\n",[219,334,336,338,340,342,345,348],{"class":221,"line":335},2,[219,337,226],{"class":225},[219,339,230],{"class":229},[219,341,329],{"class":229},[219,343,344],{"class":229}," --fresh",[219,346,347],{"class":229}," --force",[219,349,350],{"class":229}," --database=reporting\n",[219,352,354,356,358,360,363],{"class":221,"line":353},3,[219,355,226],{"class":225},[219,357,230],{"class":229},[219,359,329],{"class":229},[219,361,362],{"class":229}," --layer=functional\u002Forders",[219,364,365],{"class":229}," --layer=billing\n",[199,367,368,370,371,373,374,370,376,378,379,382,383,385,386,388],{},[202,369,275],{}," and ",[202,372,289],{}," cannot be combined. ",[202,375,302],{},[202,377,312],{}," are forwarded to ",[202,380,381],{},"db:seed",", and to ",[202,384,281],{}," or ",[202,387,294],{},".",[235,390,392],{"id":391},"exit-codes","Exit codes",[199,394,395,397],{},[202,396,130],{}," returns the exit code of the step that failed:",[399,400,401,410],"ul",{},[402,403,404,405,385,407,409],"li",{},"when ",[202,406,281],{},[202,408,294],{}," fails, nothing is seeded and the command returns its code;",[402,411,412,413,388],{},"otherwise it returns the exit code of ",[202,414,381],{},[199,416,417,418,420,421,424,425,427],{},"A seeder that throws stops the run: the next seeders do not run. A class registered with ",[202,419,207],{}," that does not exist fails the run before any seeder runs, with ",[202,422,423],{},"Lomkit\\Osdd\\Seeders\\SeederNotFoundException",", so a typo in a provider fails ",[202,426,130],{}," and your CI.",[199,429,430,431,433,434,436,437,388],{},"In production, ",[202,432,381],{}," asks for confirmation once. A cancelled run seeds nothing and exits with 1. Without a terminal, ",[202,435,381],{}," cancels itself: pass ",[202,438,312],{},[235,440,442],{"id":441},"seeding-some-layers","Seeding some layers",[210,444,446],{"className":212,"code":445,"language":214,"meta":215,"style":215},"php artisan osdd:seed --layer=functional\u002Forders --layer=billing\nphp artisan osdd:seed --layer=orders,billing\n",[202,447,448,460],{"__ignoreMap":215},[219,449,450,452,454,456,458],{"class":221,"line":222},[219,451,226],{"class":225},[219,453,230],{"class":229},[219,455,329],{"class":229},[219,457,362],{"class":229},[219,459,365],{"class":229},[219,461,462,464,466,468],{"class":221,"line":335},[219,463,226],{"class":225},[219,465,230],{"class":229},[219,467,329],{"class":229},[219,469,470],{"class":229}," --layer=orders,billing\n",[199,472,473,474,477,478,480,481,483,484,388],{},"Only the seeders whose class belongs to those layers run, still in priority order. A seeder belongs to the layer with the longest matching ",[202,475,476],{},"psr-4"," prefix. Names resolve like the generators' ",[202,479,265],{},": an unknown or ambiguous name fails with exit code 1 before anything runs, ",[202,482,275],{}," included. A selected layer without seeders prints ",[202,485,486],{},"No OSDD seeders registered for functional\u002Forders.",[235,488,490],{"id":489},"registering-and-ordering-seeders","Registering and ordering seeders",[199,492,493,494,496,497,388],{},"Layers register their seeders with ",[202,495,207],{}," in their provider, with an optional priority. See ",[498,499,72],"a",{"href":73},[501,502,503],"style",{},"html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}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":215,"searchDepth":222,"depth":335,"links":505},[506,507,508,509],{"id":237,"depth":335,"text":238},{"id":391,"depth":335,"text":392},{"id":441,"depth":335,"text":442},{"id":489,"depth":335,"text":490},"Run the seeders registered by every layer, or by some layers.","md",null,{},true,{"title":130,"description":510},{"loc":131},"uQ2nZIYbo3vjyC3ZnBL2esRHDTjnVWW7bL8WpnduuYY",[519,521],{"title":126,"path":127,"stem":128,"description":520,"children":-1},"Print the graph of the layers and the layers they require.",{"title":134,"path":135,"stem":136,"description":522,"children":-1},"Sync phpunit.xml with the test suite and source directory of each layer.",1794437212133]