If you find this website useful, your sponsorship would greatly support its ongoing development and maintenance. Learn more

Make Database

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        
    

© 2024 Laravel AdminTW. All rights reserved.

Built by David Carr