Skip to content

Cron Job

You need to create a cron job to run commands to reset daily status post limit and reset leaderboard points and send rewards to top users.

Command :

Terminal window
{php_path} /{api_root_directory}/artisan schedule:run 1>> /dev/null 2>&1

Example:

  • php_path : “/usr/local/bin/php” or “/usr/bin/php
  • api_root_directory : “/home/example/api” or “/home/example/Public_html/api
  • Full Command : “/usr/local/bin/php /home/example/api/artisan schedule:run 1>> /dev/null 2>&1

Above commands are examples. Please use your own hosting PHP path and your api domain root path. While running this command the terminal should use PHP >= 8.1. If your default php version is different, then please use PHP 8.1 path (ex: “/usr/local/bin/ea-php81”)