Skip to content

Cron Job

Scheduled posts will not publish automatically without setting up a Cron Job. The system uses Laravel's task scheduler to run scheduled-posts:publish every minute.

Cron Command

Add this to your server's crontab:

* * * * * cd /path-to-your-project && php artisan schedule:run >> /dev/null 2>&1
  • Linux / cPanel: Add the above line in Crontab
  • Windows: Use Task Scheduler to run php artisan schedule:run every minute
  • Shared Hosting: Use your hosting panel's Cron Job feature

Path

Replace /path-to-your-project with your actual project root path. For example:

  • /home/username/public_html
  • /var/www/autopost

Verify

After setting up, scheduled posts will automatically publish when their Schedule Time arrives. Check All Posts or Publish Posts panel to see status.

Image