[{"data":1,"prerenderedAt":1211},["Reactive",2],{"content-query-7wrqPOWJYU":3},{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":8,"description":9,"head":10,"layout":12,"body":13,"_type":1206,"_id":1207,"_source":1208,"_file":1209,"_extension":1210},"/docs/laravel/laravel-task-scheduler","laravel",false,"","Laravel Task Scheduler with Docker","Learn how to configure a Laravel Task Scheduler with Docker.",{"title":11},"Laravel Task Scheduler with Docker - Docker PHP - Server Side Up","docs",{"type":14,"children":15,"toc":1200},"root",[16,24,30,37,127,133,155,161,166,183,425,430,1173,1179,1184,1194],{"type":17,"tag":18,"props":19,"children":21},"element","h1",{"id":20},"laravel-task-scheduler-with-docker",[22],{"type":23,"value":8},"text",{"type":17,"tag":25,"props":26,"children":27},"p",{},[28],{"type":23,"value":29},"Running a Laravel task scheduler with Docker can be a little different from the traditional methods.",{"type":17,"tag":31,"props":32,"children":34},"h2",{"id":33},"important-concepts",[35],{"type":23,"value":36},"Important concepts",{"type":17,"tag":38,"props":39,"children":40},"ol",{},[41,83,88,109,122],{"type":17,"tag":42,"props":43,"children":44},"li",{},[45,47,54,56,62,64,70,72,81],{"type":23,"value":46},"If you're using ",{"type":17,"tag":48,"props":49,"children":51},"code",{"className":50},[],[52],{"type":23,"value":53},"fpm-apache",{"type":23,"value":55}," or ",{"type":17,"tag":48,"props":57,"children":59},{"className":58},[],[60],{"type":23,"value":61},"fpm-nginx",{"type":23,"value":63},", might need to set the stop signal to ",{"type":17,"tag":48,"props":65,"children":67},{"className":66},[],[68],{"type":23,"value":69},"SIGTERM",{"type":23,"value":71}," for a graceful shutdown (see this ",{"type":17,"tag":73,"props":74,"children":78},"a",{"href":75,"rel":76},"https://github.com/serversideup/docker-php/pull/437",[77],"nofollow",[79],{"type":23,"value":80},"PR",{"type":23,"value":82}," for more details why)",{"type":17,"tag":42,"props":84,"children":85},{},[86],{"type":23,"value":87},"Be sure to set the health check",{"type":17,"tag":42,"props":89,"children":90},{},[91,93,99,101,107],{"type":23,"value":92},"We will ",{"type":17,"tag":94,"props":95,"children":96},"strong",{},[97],{"type":23,"value":98},"not",{"type":23,"value":100}," use ",{"type":17,"tag":48,"props":102,"children":104},{"className":103},[],[105],{"type":23,"value":106},"cron",{"type":23,"value":108}," to run the scheduler",{"type":17,"tag":42,"props":110,"children":111},{},[112,114,120],{"type":23,"value":113},"By default ",{"type":17,"tag":48,"props":115,"children":117},{"className":116},[],[118],{"type":23,"value":119},"schedule:work",{"type":23,"value":121}," checks every minute, so we will use that to run the system process",{"type":17,"tag":42,"props":123,"children":124},{},[125],{"type":23,"value":126},"The actual time trigger itself is set within Laravel",{"type":17,"tag":31,"props":128,"children":130},{"id":129},"more-detail",[131],{"type":23,"value":132},"More detail",{"type":17,"tag":25,"props":134,"children":135},{},[136,138,144,146,153],{"type":23,"value":137},"We need to run the ",{"type":17,"tag":73,"props":139,"children":142},{"href":140,"rel":141},"https://laravel.com/docs/11.x/scheduling#running-the-scheduler-locally",[77],[143],{"type":23,"value":119},{"type":23,"value":145}," command from Laravel. Although the docs say \"Running the scheduler locally\", this is what we want in production. It will run the scheduler in the foreground and execute it every minute. You can configure your Laravel app for the exact time that a command should run through a ",{"type":17,"tag":73,"props":147,"children":150},{"href":148,"rel":149},"https://laravel.com/docs/11.x/scheduling#scheduling-artisan-commands",[77],[151],{"type":23,"value":152},"scheduled task",{"type":23,"value":154},".",{"type":17,"tag":31,"props":156,"children":158},{"id":157},"examples",[159],{"type":23,"value":160},"Examples",{"type":17,"tag":25,"props":162,"children":163},{},[164],{"type":23,"value":165},"Here is a simplified example of how you can achieve this with Docker Compose:",{"type":17,"tag":167,"props":168,"children":169},"note",{},[170],{"type":17,"tag":25,"props":171,"children":172},{},[173,175,181],{"type":23,"value":174},"Notice we're calling the artisan command explicitly with the full path (",{"type":17,"tag":48,"props":176,"children":178},{"className":177},[],[179],{"type":23,"value":180},"/var/www/html/artisan",{"type":23,"value":182},"). This is because we need to run the command from the context of the container.",{"type":17,"tag":184,"props":185,"children":187},"code-panel",{"label":186},"Example & Simplified Docker Compose File",[188],{"type":17,"tag":189,"props":190,"children":194},"pre",{"className":191,"code":192,"language":193,"meta":7,"style":7},"language-yaml shiki shiki-themes github-dark github-dark monokai","services:\n  php:\n    image: my/laravel-app\n\n  task:\n    image: my/laravel-app\n    command: [\"php\", \"/var/www/html/artisan\", \"schedule:work\"]\n    stop_signal: SIGTERM # Set this for graceful shutdown if you're using fpm-apache or fpm-nginx\n    healthcheck:\n      # This is our native healthcheck script for the scheduler\n      test: [\"CMD\", \"healthcheck-scheduler\"]\n      start_period: 10s\n","yaml",[195],{"type":17,"tag":48,"props":196,"children":197},{"__ignoreMap":7},[198,216,229,249,259,272,288,331,354,367,376,407],{"type":17,"tag":199,"props":200,"children":203},"span",{"class":201,"line":202},"line",1,[204,210],{"type":17,"tag":199,"props":205,"children":207},{"style":206},"--shiki-default:#85E89D;--shiki-dark:#85E89D;--shiki-sepia:#F92672",[208],{"type":23,"value":209},"services",{"type":17,"tag":199,"props":211,"children":213},{"style":212},"--shiki-default:#E1E4E8;--shiki-dark:#E1E4E8;--shiki-sepia:#F8F8F2",[214],{"type":23,"value":215},":\n",{"type":17,"tag":199,"props":217,"children":219},{"class":201,"line":218},2,[220,225],{"type":17,"tag":199,"props":221,"children":222},{"style":206},[223],{"type":23,"value":224},"  php",{"type":17,"tag":199,"props":226,"children":227},{"style":212},[228],{"type":23,"value":215},{"type":17,"tag":199,"props":230,"children":232},{"class":201,"line":231},3,[233,238,243],{"type":17,"tag":199,"props":234,"children":235},{"style":206},[236],{"type":23,"value":237},"    image",{"type":17,"tag":199,"props":239,"children":240},{"style":212},[241],{"type":23,"value":242},": ",{"type":17,"tag":199,"props":244,"children":246},{"style":245},"--shiki-default:#9ECBFF;--shiki-dark:#9ECBFF;--shiki-sepia:#E6DB74",[247],{"type":23,"value":248},"my/laravel-app\n",{"type":17,"tag":199,"props":250,"children":252},{"class":201,"line":251},4,[253],{"type":17,"tag":199,"props":254,"children":256},{"emptyLinePlaceholder":255},true,[257],{"type":23,"value":258},"\n",{"type":17,"tag":199,"props":260,"children":262},{"class":201,"line":261},5,[263,268],{"type":17,"tag":199,"props":264,"children":265},{"style":206},[266],{"type":23,"value":267},"  task",{"type":17,"tag":199,"props":269,"children":270},{"style":212},[271],{"type":23,"value":215},{"type":17,"tag":199,"props":273,"children":275},{"class":201,"line":274},6,[276,280,284],{"type":17,"tag":199,"props":277,"children":278},{"style":206},[279],{"type":23,"value":237},{"type":17,"tag":199,"props":281,"children":282},{"style":212},[283],{"type":23,"value":242},{"type":17,"tag":199,"props":285,"children":286},{"style":245},[287],{"type":23,"value":248},{"type":17,"tag":199,"props":289,"children":291},{"class":201,"line":290},7,[292,297,302,307,312,317,321,326],{"type":17,"tag":199,"props":293,"children":294},{"style":206},[295],{"type":23,"value":296},"    command",{"type":17,"tag":199,"props":298,"children":299},{"style":212},[300],{"type":23,"value":301},": [",{"type":17,"tag":199,"props":303,"children":304},{"style":245},[305],{"type":23,"value":306},"\"php\"",{"type":17,"tag":199,"props":308,"children":309},{"style":212},[310],{"type":23,"value":311},", ",{"type":17,"tag":199,"props":313,"children":314},{"style":245},[315],{"type":23,"value":316},"\"/var/www/html/artisan\"",{"type":17,"tag":199,"props":318,"children":319},{"style":212},[320],{"type":23,"value":311},{"type":17,"tag":199,"props":322,"children":323},{"style":245},[324],{"type":23,"value":325},"\"schedule:work\"",{"type":17,"tag":199,"props":327,"children":328},{"style":212},[329],{"type":23,"value":330},"]\n",{"type":17,"tag":199,"props":332,"children":334},{"class":201,"line":333},8,[335,340,344,348],{"type":17,"tag":199,"props":336,"children":337},{"style":206},[338],{"type":23,"value":339},"    stop_signal",{"type":17,"tag":199,"props":341,"children":342},{"style":212},[343],{"type":23,"value":242},{"type":17,"tag":199,"props":345,"children":346},{"style":245},[347],{"type":23,"value":69},{"type":17,"tag":199,"props":349,"children":351},{"style":350},"--shiki-default:#6A737D;--shiki-dark:#6A737D;--shiki-sepia:#88846F",[352],{"type":23,"value":353}," # Set this for graceful shutdown if you're using fpm-apache or fpm-nginx\n",{"type":17,"tag":199,"props":355,"children":357},{"class":201,"line":356},9,[358,363],{"type":17,"tag":199,"props":359,"children":360},{"style":206},[361],{"type":23,"value":362},"    healthcheck",{"type":17,"tag":199,"props":364,"children":365},{"style":212},[366],{"type":23,"value":215},{"type":17,"tag":199,"props":368,"children":370},{"class":201,"line":369},10,[371],{"type":17,"tag":199,"props":372,"children":373},{"style":350},[374],{"type":23,"value":375},"      # This is our native healthcheck script for the scheduler\n",{"type":17,"tag":199,"props":377,"children":379},{"class":201,"line":378},11,[380,385,389,394,398,403],{"type":17,"tag":199,"props":381,"children":382},{"style":206},[383],{"type":23,"value":384},"      test",{"type":17,"tag":199,"props":386,"children":387},{"style":212},[388],{"type":23,"value":301},{"type":17,"tag":199,"props":390,"children":391},{"style":245},[392],{"type":23,"value":393},"\"CMD\"",{"type":17,"tag":199,"props":395,"children":396},{"style":212},[397],{"type":23,"value":311},{"type":17,"tag":199,"props":399,"children":400},{"style":245},[401],{"type":23,"value":402},"\"healthcheck-scheduler\"",{"type":17,"tag":199,"props":404,"children":405},{"style":212},[406],{"type":23,"value":330},{"type":17,"tag":199,"props":408,"children":410},{"class":201,"line":409},12,[411,416,420],{"type":17,"tag":199,"props":412,"children":413},{"style":206},[414],{"type":23,"value":415},"      start_period",{"type":17,"tag":199,"props":417,"children":418},{"style":212},[419],{"type":23,"value":242},{"type":17,"tag":199,"props":421,"children":422},{"style":245},[423],{"type":23,"value":424},"10s\n",{"type":17,"tag":25,"props":426,"children":427},{},[428],{"type":23,"value":429},"This is an example how we would set the actual execution time within Laravel itself:",{"type":17,"tag":184,"props":431,"children":433},{"label":432},"Example Laravel `Kernel.php`",[434],{"type":17,"tag":189,"props":435,"children":439},{"className":436,"code":437,"language":438,"meta":7,"style":7},"language-php shiki shiki-themes github-dark github-dark monokai","\u003C?php\n\nnamespace App\\Console;\n\nuse Illuminate\\Console\\Scheduling\\Schedule;\nuse Illuminate\\Foundation\\Console\\Kernel as ConsoleKernel;\n\nclass Kernel extends ConsoleKernel\n{\n    /**\n     * The Artisan commands provided by your application.\n     *\n     * @var array\n     */\n    protected $commands = [\n        //\n    ];\n\n    /**\n     * Define the application's command schedule.\n     *\n     * @param  \\Illuminate\\Console\\Scheduling\\Schedule  $schedule\n     * @return void\n     */\n    protected function schedule(Schedule $schedule)\n    {\n        $schedule->command('process:invoices')->daily()->at('02:00')->timezone('America/Chicago');\n        $schedule->command('process:latefees')->daily()->at('04:00')->timezone('America/Chicago');\n    }\n\n    /**\n     * Register the commands for the application.\n     *\n     * @return void\n     */\n    protected function commands()\n    {\n        $this->load(__DIR__.'/Commands');\n\n        require base_path('routes/console.php');\n    }\n}\n","php",[440],{"type":17,"tag":48,"props":441,"children":442},{"__ignoreMap":7},[443,458,465,484,491,515,547,554,579,587,595,603,611,630,639,663,672,681,689,697,706,714,742,760,768,801,810,902,984,993,1001,1009,1018,1026,1042,1050,1072,1080,1121,1129,1156,1164],{"type":17,"tag":199,"props":444,"children":445},{"class":201,"line":202},[446,452],{"type":17,"tag":199,"props":447,"children":449},{"style":448},"--shiki-default:#F97583;--shiki-dark:#F97583;--shiki-sepia:#F92672",[450],{"type":23,"value":451},"\u003C?",{"type":17,"tag":199,"props":453,"children":455},{"style":454},"--shiki-default:#79B8FF;--shiki-dark:#79B8FF;--shiki-sepia:#AE81FF",[456],{"type":23,"value":457},"php\n",{"type":17,"tag":199,"props":459,"children":460},{"class":201,"line":218},[461],{"type":17,"tag":199,"props":462,"children":463},{"emptyLinePlaceholder":255},[464],{"type":23,"value":258},{"type":17,"tag":199,"props":466,"children":467},{"class":201,"line":231},[468,473,479],{"type":17,"tag":199,"props":469,"children":470},{"style":448},[471],{"type":23,"value":472},"namespace",{"type":17,"tag":199,"props":474,"children":476},{"style":475},"--shiki-default:#B392F0;--shiki-dark:#B392F0;--shiki-sepia:#A6E22E;--shiki-default-text-decoration:inherit;--shiki-dark-text-decoration:inherit;--shiki-sepia-text-decoration:underline",[477],{"type":23,"value":478}," App\\Console",{"type":17,"tag":199,"props":480,"children":481},{"style":212},[482],{"type":23,"value":483},";\n",{"type":17,"tag":199,"props":485,"children":486},{"class":201,"line":251},[487],{"type":17,"tag":199,"props":488,"children":489},{"emptyLinePlaceholder":255},[490],{"type":23,"value":258},{"type":17,"tag":199,"props":492,"children":493},{"class":201,"line":261},[494,499,505,511],{"type":17,"tag":199,"props":495,"children":496},{"style":448},[497],{"type":23,"value":498},"use",{"type":17,"tag":199,"props":500,"children":502},{"style":501},"--shiki-default:#79B8FF;--shiki-dark:#79B8FF;--shiki-sepia:#F8F8F2",[503],{"type":23,"value":504}," Illuminate\\Console\\Scheduling\\",{"type":17,"tag":199,"props":506,"children":508},{"style":507},"--shiki-default:#79B8FF;--shiki-dark:#79B8FF;--shiki-sepia:#66D9EF;--shiki-default-font-style:inherit;--shiki-dark-font-style:inherit;--shiki-sepia-font-style:italic",[509],{"type":23,"value":510},"Schedule",{"type":17,"tag":199,"props":512,"children":513},{"style":212},[514],{"type":23,"value":483},{"type":17,"tag":199,"props":516,"children":517},{"class":201,"line":274},[518,522,527,532,537,543],{"type":17,"tag":199,"props":519,"children":520},{"style":448},[521],{"type":23,"value":498},{"type":17,"tag":199,"props":523,"children":524},{"style":501},[525],{"type":23,"value":526}," Illuminate\\Foundation\\Console\\",{"type":17,"tag":199,"props":528,"children":529},{"style":507},[530],{"type":23,"value":531},"Kernel",{"type":17,"tag":199,"props":533,"children":534},{"style":448},[535],{"type":23,"value":536}," as",{"type":17,"tag":199,"props":538,"children":540},{"style":539},"--shiki-default:#B392F0;--shiki-dark:#B392F0;--shiki-sepia:#F8F8F2",[541],{"type":23,"value":542}," ConsoleKernel",{"type":17,"tag":199,"props":544,"children":545},{"style":212},[546],{"type":23,"value":483},{"type":17,"tag":199,"props":548,"children":549},{"class":201,"line":290},[550],{"type":17,"tag":199,"props":551,"children":552},{"emptyLinePlaceholder":255},[553],{"type":23,"value":258},{"type":17,"tag":199,"props":555,"children":556},{"class":201,"line":333},[557,563,568,573],{"type":17,"tag":199,"props":558,"children":560},{"style":559},"--shiki-default:#F97583;--shiki-dark:#F97583;--shiki-sepia:#66D9EF;--shiki-default-font-style:inherit;--shiki-dark-font-style:inherit;--shiki-sepia-font-style:italic",[561],{"type":23,"value":562},"class",{"type":17,"tag":199,"props":564,"children":565},{"style":475},[566],{"type":23,"value":567}," Kernel",{"type":17,"tag":199,"props":569,"children":570},{"style":448},[571],{"type":23,"value":572}," extends",{"type":17,"tag":199,"props":574,"children":576},{"style":575},"--shiki-default:#B392F0;--shiki-dark:#B392F0;--shiki-sepia:#A6E22E;--shiki-default-font-style:inherit;--shiki-dark-font-style:inherit;--shiki-sepia-font-style:italic;--shiki-default-text-decoration:inherit;--shiki-dark-text-decoration:inherit;--shiki-sepia-text-decoration:underline",[577],{"type":23,"value":578}," ConsoleKernel\n",{"type":17,"tag":199,"props":580,"children":581},{"class":201,"line":356},[582],{"type":17,"tag":199,"props":583,"children":584},{"style":212},[585],{"type":23,"value":586},"{\n",{"type":17,"tag":199,"props":588,"children":589},{"class":201,"line":369},[590],{"type":17,"tag":199,"props":591,"children":592},{"style":350},[593],{"type":23,"value":594},"    /**\n",{"type":17,"tag":199,"props":596,"children":597},{"class":201,"line":378},[598],{"type":17,"tag":199,"props":599,"children":600},{"style":350},[601],{"type":23,"value":602},"     * The Artisan commands provided by your application.\n",{"type":17,"tag":199,"props":604,"children":605},{"class":201,"line":409},[606],{"type":17,"tag":199,"props":607,"children":608},{"style":350},[609],{"type":23,"value":610},"     *\n",{"type":17,"tag":199,"props":612,"children":614},{"class":201,"line":613},13,[615,620,625],{"type":17,"tag":199,"props":616,"children":617},{"style":350},[618],{"type":23,"value":619},"     * ",{"type":17,"tag":199,"props":621,"children":622},{"style":448},[623],{"type":23,"value":624},"@var",{"type":17,"tag":199,"props":626,"children":627},{"style":448},[628],{"type":23,"value":629}," array\n",{"type":17,"tag":199,"props":631,"children":633},{"class":201,"line":632},14,[634],{"type":17,"tag":199,"props":635,"children":636},{"style":350},[637],{"type":23,"value":638},"     */\n",{"type":17,"tag":199,"props":640,"children":642},{"class":201,"line":641},15,[643,648,653,658],{"type":17,"tag":199,"props":644,"children":645},{"style":448},[646],{"type":23,"value":647},"    protected",{"type":17,"tag":199,"props":649,"children":650},{"style":212},[651],{"type":23,"value":652}," $commands ",{"type":17,"tag":199,"props":654,"children":655},{"style":448},[656],{"type":23,"value":657},"=",{"type":17,"tag":199,"props":659,"children":660},{"style":212},[661],{"type":23,"value":662}," [\n",{"type":17,"tag":199,"props":664,"children":666},{"class":201,"line":665},16,[667],{"type":17,"tag":199,"props":668,"children":669},{"style":350},[670],{"type":23,"value":671},"        //\n",{"type":17,"tag":199,"props":673,"children":675},{"class":201,"line":674},17,[676],{"type":17,"tag":199,"props":677,"children":678},{"style":212},[679],{"type":23,"value":680},"    ];\n",{"type":17,"tag":199,"props":682,"children":684},{"class":201,"line":683},18,[685],{"type":17,"tag":199,"props":686,"children":687},{"emptyLinePlaceholder":255},[688],{"type":23,"value":258},{"type":17,"tag":199,"props":690,"children":692},{"class":201,"line":691},19,[693],{"type":17,"tag":199,"props":694,"children":695},{"style":350},[696],{"type":23,"value":594},{"type":17,"tag":199,"props":698,"children":700},{"class":201,"line":699},20,[701],{"type":17,"tag":199,"props":702,"children":703},{"style":350},[704],{"type":23,"value":705},"     * Define the application's command schedule.\n",{"type":17,"tag":199,"props":707,"children":709},{"class":201,"line":708},21,[710],{"type":17,"tag":199,"props":711,"children":712},{"style":350},[713],{"type":23,"value":610},{"type":17,"tag":199,"props":715,"children":717},{"class":201,"line":716},22,[718,722,727,733,737],{"type":17,"tag":199,"props":719,"children":720},{"style":350},[721],{"type":23,"value":619},{"type":17,"tag":199,"props":723,"children":724},{"style":448},[725],{"type":23,"value":726},"@param",{"type":17,"tag":199,"props":728,"children":730},{"style":729},"--shiki-default:#79B8FF;--shiki-dark:#79B8FF;--shiki-sepia:#88846F",[731],{"type":23,"value":732},"  \\Illuminate\\Console\\Scheduling\\",{"type":17,"tag":199,"props":734,"children":735},{"style":507},[736],{"type":23,"value":510},{"type":17,"tag":199,"props":738,"children":739},{"style":350},[740],{"type":23,"value":741},"  $schedule\n",{"type":17,"tag":199,"props":743,"children":745},{"class":201,"line":744},23,[746,750,755],{"type":17,"tag":199,"props":747,"children":748},{"style":350},[749],{"type":23,"value":619},{"type":17,"tag":199,"props":751,"children":752},{"style":448},[753],{"type":23,"value":754},"@return",{"type":17,"tag":199,"props":756,"children":757},{"style":448},[758],{"type":23,"value":759}," void\n",{"type":17,"tag":199,"props":761,"children":763},{"class":201,"line":762},24,[764],{"type":17,"tag":199,"props":765,"children":766},{"style":350},[767],{"type":23,"value":638},{"type":17,"tag":199,"props":769,"children":771},{"class":201,"line":770},25,[772,776,781,787,792,796],{"type":17,"tag":199,"props":773,"children":774},{"style":448},[775],{"type":23,"value":647},{"type":17,"tag":199,"props":777,"children":778},{"style":559},[779],{"type":23,"value":780}," function",{"type":17,"tag":199,"props":782,"children":784},{"style":783},"--shiki-default:#B392F0;--shiki-dark:#B392F0;--shiki-sepia:#A6E22E",[785],{"type":23,"value":786}," schedule",{"type":17,"tag":199,"props":788,"children":789},{"style":212},[790],{"type":23,"value":791},"(",{"type":17,"tag":199,"props":793,"children":794},{"style":507},[795],{"type":23,"value":510},{"type":17,"tag":199,"props":797,"children":798},{"style":212},[799],{"type":23,"value":800}," $schedule)\n",{"type":17,"tag":199,"props":802,"children":804},{"class":201,"line":803},26,[805],{"type":17,"tag":199,"props":806,"children":807},{"style":212},[808],{"type":23,"value":809},"    {\n",{"type":17,"tag":199,"props":811,"children":813},{"class":201,"line":812},27,[814,819,824,829,833,838,843,847,852,857,861,866,870,875,879,883,888,892,897],{"type":17,"tag":199,"props":815,"children":816},{"style":212},[817],{"type":23,"value":818},"        $schedule",{"type":17,"tag":199,"props":820,"children":821},{"style":448},[822],{"type":23,"value":823},"->",{"type":17,"tag":199,"props":825,"children":826},{"style":783},[827],{"type":23,"value":828},"command",{"type":17,"tag":199,"props":830,"children":831},{"style":212},[832],{"type":23,"value":791},{"type":17,"tag":199,"props":834,"children":835},{"style":245},[836],{"type":23,"value":837},"'process:invoices'",{"type":17,"tag":199,"props":839,"children":840},{"style":212},[841],{"type":23,"value":842},")",{"type":17,"tag":199,"props":844,"children":845},{"style":448},[846],{"type":23,"value":823},{"type":17,"tag":199,"props":848,"children":849},{"style":783},[850],{"type":23,"value":851},"daily",{"type":17,"tag":199,"props":853,"children":854},{"style":212},[855],{"type":23,"value":856},"()",{"type":17,"tag":199,"props":858,"children":859},{"style":448},[860],{"type":23,"value":823},{"type":17,"tag":199,"props":862,"children":863},{"style":783},[864],{"type":23,"value":865},"at",{"type":17,"tag":199,"props":867,"children":868},{"style":212},[869],{"type":23,"value":791},{"type":17,"tag":199,"props":871,"children":872},{"style":245},[873],{"type":23,"value":874},"'02:00'",{"type":17,"tag":199,"props":876,"children":877},{"style":212},[878],{"type":23,"value":842},{"type":17,"tag":199,"props":880,"children":881},{"style":448},[882],{"type":23,"value":823},{"type":17,"tag":199,"props":884,"children":885},{"style":783},[886],{"type":23,"value":887},"timezone",{"type":17,"tag":199,"props":889,"children":890},{"style":212},[891],{"type":23,"value":791},{"type":17,"tag":199,"props":893,"children":894},{"style":245},[895],{"type":23,"value":896},"'America/Chicago'",{"type":17,"tag":199,"props":898,"children":899},{"style":212},[900],{"type":23,"value":901},");\n",{"type":17,"tag":199,"props":903,"children":905},{"class":201,"line":904},28,[906,910,914,918,922,927,931,935,939,943,947,951,955,960,964,968,972,976,980],{"type":17,"tag":199,"props":907,"children":908},{"style":212},[909],{"type":23,"value":818},{"type":17,"tag":199,"props":911,"children":912},{"style":448},[913],{"type":23,"value":823},{"type":17,"tag":199,"props":915,"children":916},{"style":783},[917],{"type":23,"value":828},{"type":17,"tag":199,"props":919,"children":920},{"style":212},[921],{"type":23,"value":791},{"type":17,"tag":199,"props":923,"children":924},{"style":245},[925],{"type":23,"value":926},"'process:latefees'",{"type":17,"tag":199,"props":928,"children":929},{"style":212},[930],{"type":23,"value":842},{"type":17,"tag":199,"props":932,"children":933},{"style":448},[934],{"type":23,"value":823},{"type":17,"tag":199,"props":936,"children":937},{"style":783},[938],{"type":23,"value":851},{"type":17,"tag":199,"props":940,"children":941},{"style":212},[942],{"type":23,"value":856},{"type":17,"tag":199,"props":944,"children":945},{"style":448},[946],{"type":23,"value":823},{"type":17,"tag":199,"props":948,"children":949},{"style":783},[950],{"type":23,"value":865},{"type":17,"tag":199,"props":952,"children":953},{"style":212},[954],{"type":23,"value":791},{"type":17,"tag":199,"props":956,"children":957},{"style":245},[958],{"type":23,"value":959},"'04:00'",{"type":17,"tag":199,"props":961,"children":962},{"style":212},[963],{"type":23,"value":842},{"type":17,"tag":199,"props":965,"children":966},{"style":448},[967],{"type":23,"value":823},{"type":17,"tag":199,"props":969,"children":970},{"style":783},[971],{"type":23,"value":887},{"type":17,"tag":199,"props":973,"children":974},{"style":212},[975],{"type":23,"value":791},{"type":17,"tag":199,"props":977,"children":978},{"style":245},[979],{"type":23,"value":896},{"type":17,"tag":199,"props":981,"children":982},{"style":212},[983],{"type":23,"value":901},{"type":17,"tag":199,"props":985,"children":987},{"class":201,"line":986},29,[988],{"type":17,"tag":199,"props":989,"children":990},{"style":212},[991],{"type":23,"value":992},"    }\n",{"type":17,"tag":199,"props":994,"children":996},{"class":201,"line":995},30,[997],{"type":17,"tag":199,"props":998,"children":999},{"emptyLinePlaceholder":255},[1000],{"type":23,"value":258},{"type":17,"tag":199,"props":1002,"children":1004},{"class":201,"line":1003},31,[1005],{"type":17,"tag":199,"props":1006,"children":1007},{"style":350},[1008],{"type":23,"value":594},{"type":17,"tag":199,"props":1010,"children":1012},{"class":201,"line":1011},32,[1013],{"type":17,"tag":199,"props":1014,"children":1015},{"style":350},[1016],{"type":23,"value":1017},"     * Register the commands for the application.\n",{"type":17,"tag":199,"props":1019,"children":1021},{"class":201,"line":1020},33,[1022],{"type":17,"tag":199,"props":1023,"children":1024},{"style":350},[1025],{"type":23,"value":610},{"type":17,"tag":199,"props":1027,"children":1029},{"class":201,"line":1028},34,[1030,1034,1038],{"type":17,"tag":199,"props":1031,"children":1032},{"style":350},[1033],{"type":23,"value":619},{"type":17,"tag":199,"props":1035,"children":1036},{"style":448},[1037],{"type":23,"value":754},{"type":17,"tag":199,"props":1039,"children":1040},{"style":448},[1041],{"type":23,"value":759},{"type":17,"tag":199,"props":1043,"children":1045},{"class":201,"line":1044},35,[1046],{"type":17,"tag":199,"props":1047,"children":1048},{"style":350},[1049],{"type":23,"value":638},{"type":17,"tag":199,"props":1051,"children":1053},{"class":201,"line":1052},36,[1054,1058,1062,1067],{"type":17,"tag":199,"props":1055,"children":1056},{"style":448},[1057],{"type":23,"value":647},{"type":17,"tag":199,"props":1059,"children":1060},{"style":559},[1061],{"type":23,"value":780},{"type":17,"tag":199,"props":1063,"children":1064},{"style":783},[1065],{"type":23,"value":1066}," commands",{"type":17,"tag":199,"props":1068,"children":1069},{"style":212},[1070],{"type":23,"value":1071},"()\n",{"type":17,"tag":199,"props":1073,"children":1075},{"class":201,"line":1074},37,[1076],{"type":17,"tag":199,"props":1077,"children":1078},{"style":212},[1079],{"type":23,"value":809},{"type":17,"tag":199,"props":1081,"children":1083},{"class":201,"line":1082},38,[1084,1090,1094,1099,1103,1108,1112,1117],{"type":17,"tag":199,"props":1085,"children":1087},{"style":1086},"--shiki-default:#79B8FF;--shiki-dark:#79B8FF;--shiki-sepia:#FD971F",[1088],{"type":23,"value":1089},"        $this",{"type":17,"tag":199,"props":1091,"children":1092},{"style":448},[1093],{"type":23,"value":823},{"type":17,"tag":199,"props":1095,"children":1096},{"style":783},[1097],{"type":23,"value":1098},"load",{"type":17,"tag":199,"props":1100,"children":1101},{"style":212},[1102],{"type":23,"value":791},{"type":17,"tag":199,"props":1104,"children":1105},{"style":454},[1106],{"type":23,"value":1107},"__DIR__",{"type":17,"tag":199,"props":1109,"children":1110},{"style":448},[1111],{"type":23,"value":154},{"type":17,"tag":199,"props":1113,"children":1114},{"style":245},[1115],{"type":23,"value":1116},"'/Commands'",{"type":17,"tag":199,"props":1118,"children":1119},{"style":212},[1120],{"type":23,"value":901},{"type":17,"tag":199,"props":1122,"children":1124},{"class":201,"line":1123},39,[1125],{"type":17,"tag":199,"props":1126,"children":1127},{"emptyLinePlaceholder":255},[1128],{"type":23,"value":258},{"type":17,"tag":199,"props":1130,"children":1132},{"class":201,"line":1131},40,[1133,1138,1143,1147,1152],{"type":17,"tag":199,"props":1134,"children":1135},{"style":448},[1136],{"type":23,"value":1137},"        require",{"type":17,"tag":199,"props":1139,"children":1140},{"style":783},[1141],{"type":23,"value":1142}," base_path",{"type":17,"tag":199,"props":1144,"children":1145},{"style":212},[1146],{"type":23,"value":791},{"type":17,"tag":199,"props":1148,"children":1149},{"style":245},[1150],{"type":23,"value":1151},"'routes/console.php'",{"type":17,"tag":199,"props":1153,"children":1154},{"style":212},[1155],{"type":23,"value":901},{"type":17,"tag":199,"props":1157,"children":1159},{"class":201,"line":1158},41,[1160],{"type":17,"tag":199,"props":1161,"children":1162},{"style":212},[1163],{"type":23,"value":992},{"type":17,"tag":199,"props":1165,"children":1167},{"class":201,"line":1166},42,[1168],{"type":17,"tag":199,"props":1169,"children":1170},{"style":212},[1171],{"type":23,"value":1172},"}\n",{"type":17,"tag":31,"props":1174,"children":1176},{"id":1175},"get-up-and-running-the-easy-way",[1177],{"type":23,"value":1178},"Get Up and Running The Easy Way",{"type":17,"tag":25,"props":1180,"children":1181},{},[1182],{"type":23,"value":1183},"We do all the heavy lifting for you with Spin Pro. It's as easy as selecting it in a menu and we'll configure everything else for you. Learn how easy it is to get up and running with the Task Scheduler on Spin Pro.",{"type":17,"tag":25,"props":1185,"children":1186},{},[1187],{"type":17,"tag":73,"props":1188,"children":1191},{"href":1189,"rel":1190},"https://getspin.pro/docs/services/laravel-scheduler",[77],[1192],{"type":23,"value":1193},"Learn more about Laravel Task Scheduler + Spin Pro →",{"type":17,"tag":1195,"props":1196,"children":1197},"style",{},[1198],{"type":23,"value":1199},"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);}html .sepia .shiki span {color: var(--shiki-sepia);background: var(--shiki-sepia-bg);font-style: var(--shiki-sepia-font-style);font-weight: var(--shiki-sepia-font-weight);text-decoration: var(--shiki-sepia-text-decoration);}html.sepia .shiki span {color: var(--shiki-sepia);background: var(--shiki-sepia-bg);font-style: var(--shiki-sepia-font-style);font-weight: var(--shiki-sepia-font-weight);text-decoration: var(--shiki-sepia-text-decoration);}",{"title":7,"searchDepth":218,"depth":218,"links":1201},[1202,1203,1204,1205],{"id":33,"depth":218,"text":36},{"id":129,"depth":218,"text":132},{"id":157,"depth":218,"text":160},{"id":1175,"depth":218,"text":1178},"markdown","content:docs:4.laravel:2.laravel-task-scheduler.md","content","docs/4.laravel/2.laravel-task-scheduler.md","md",1727889281234]