Skip to content

Command line toolbox

Xavi edited this page Sep 2, 2018 · 2 revisions

Artisan commands

panichd:demo-rollback

Deletes all demo content added by the Demo Seeder: Categories, tickets, users, agents. It will not delete:

panichd:wipe-off-lists

It lets you delete all content from categories, priorities or statuses. Or all of them together.

panichd:wipe-off-tickets

Delete all tickets and truncate ticket table to reset autoindex

Seeders

Basic seeder

Includes basic priorities and statuses lists and also a category

php artisan db:seed --class=PanicHD\\PanicHD\\Seeds\\Basic

You can also add any of the lists separately as they have their own seeder files:

  • Basic priorities php artisan db:seed --class=PanicHD\\PanicHD\\Seeds\\BasicPriorities
  • Basic statuses php artisan db:seed --class=PanicHD\\PanicHD\\Seeds\\BasicStatuses

DemoDataSeeder

It creates demo users, agents, categories with tags and tickets

php artisan db:seed --class=PanicHD\\PanicHD\\Seeds\\DemoDataSeeder

Remember you can rollback it using the artisan command panichd:demo-rollback