Contensio logo

Scheduled Publishing

Write content now, set a future date, and let Contensio publish it automatically.

You can schedule any post or page to publish automatically at a future date and time without any cron job setup beyond what Laravel already requires.

Setting a scheduled date

On the content edit screen, find the Status field in the sidebar and set it to Scheduled. A date-time picker appears — pick the date and time you want the content to go live.

Save the content. It stays hidden from visitors until the scheduled time.

How auto-publishing works

Contensio registers an Artisan command — contensio:publish-scheduled — and hooks it into Laravel's task scheduler to run every minute. When the command runs, it finds all content items with:

  • status = scheduled
  • published_at <= now()

…and flips their status to published.

You need Laravel's scheduler running for this to work. Add the standard scheduler entry to your server's crontab:

* * * * * cd /path-to-your-project && php artisan schedule:run >> /dev/null 2>&1

This is the same crontab entry Laravel requires for any scheduled task — if you already have it for other tasks, you don't need to add it again.

Manually triggering

You can force-check and publish any due content at any time:

php artisan contensio:publish-scheduled

The command prints the number of items published (if any) and exits silently when nothing is due.

Editing scheduled content

Scheduled content is fully editable — change the title, body, or date at any time before it goes live. If you want to cancel the schedule, change the status back to Draft.