Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

DDSameera's avatar

Task Scheduling laravel application

I want to generate all due invoices in particular time period. basically i read this documentation. https://laravel.com/docs/8.x/scheduling#scheduling-artisan-commands

we can run php artisan command in our localhost

php artisan schedule:work

Here is my question .

If i run this project on centos8 server. do i need to add additional configuration to that place ?

Please explain me .

0 likes
6 replies
Snapey's avatar

@tisuchi thats queue workers not schedule work

@ddsameera on your centos server you need to setup a cron job that runs php artisan schedule:work once every minute. When it runs, it checks the time to see if any work is scheduled for that minute.

Setting up your crontab is in the docs

1 like
DDSameera's avatar

@snapey , how could i implement it on Production server ? do i need to setup any additonal things?

Please or to participate in this conversation.