From time to time you will want to clear all the data from the database and run the following:
- Migrate the database
- Seed the database (populate the tables with data)
AdminTW provides a command called db:build that will run migrations and seed all tables from fresh.
This command will only run on local and staging environments. When the ENV environment is set to production the command will not run.
Be advised this will delete all existing database data! a confirmation will prompt the user to continue when executed.
php artisan db:build