You're viewing the docs for an old version of this package. Go to the latest version?

Commands (Laravel Forum 5.x)

Commands

Seed

php artisan forum:seed

Seed the forum tables with example categories, content, and a user (to assign as author of the content). You can run this multiple times to generate more data.

Sync stats

php artisan forum:sync

Synchronize forum category and thread statistics. Available options:

  • --model=: Limit the process to a specific model (Category or Thread).
  • --range=: Limit the process to a specific range in the format skip:take (e.g. 10:50 would skip 10 rows and take 50). Useful for batching on a large forum.

Using this command should not be necessary with ordinary use of the forum; it’s designed to correct errors inadvertently caused by bugs or modifications.