Cron Job Setup

Firstly search for the "Cron Jobs" option and go inside the section from cpanel. The following image will give you an idea of finding cron job options.


Secondly, inside the "Cron Jobs" section add /path_to_php_folder /your_project_root_folder/artisan schedule:run 2>&1 command, which will run every minute. To run a cron job every minute, please select the "Once Per Minute" option from the "Common Settings" dropdown above. You have to replace "/path_to_php_folder" with the php folder location in your server and "/your_project_root_folder/" with the location of your project root folder. Which will look like the following image.


After successfully adding the command your cron job will look like the following.

*****/usr/local/bin/php /your_project_root_folder/artisan schedule:run 2>&1
For example, if user project's root directory looks like the following image


Then the cron job command will look like the following

*****/usr/local/bin/php /home/okta63223393/public_html/artisan schedule:run 2>&1