Skip to content

Demo Mode

XetaSuite comes with demo mode disabled by default.

This mode is designed to:

  • Allow a public demonstration
  • Prevent data accumulation
  • Ensure an always functional environment

In demo mode, the database is automatically reset every 6 hours via the command:

Terminal window
php artisan demo:reset

This command:

  1. Deletes all data
  2. Runs migrations
  3. Re-seeds demonstration data
  1. Disable demo mode

    In your .env file:

    Terminal window
    DEMO_MODE=false
  2. Remove the reset command

    Delete the following file:

    app/Console/Commands/ResetDemoDatabase.php
  3. Remove the scheduled task

    In routes/console.php, remove any reference to:

    Schedule::command('demo:reset')->...
  4. Configure your backups

    Set up your own backup strategies (backups, monitoring, etc.).

Demo mode allows:

  • Preventing abuse on the public instance
  • Keeping a clean environment for demonstrations
  • Freely testing features without consequences