• php artisan migrate:fresh
    The migrate:fresh command is used to drop all the tables from the database, and then it re-runs all the migrations.

  • php artisan migrate:install
    The migrate:install command creates the migration table in a database.

  • php artisan migrate:refresh
    The migrate:refresh command is used to rollback all the migrations and then re-run the migrations. Basically, it is used to re-create the entire database.

  • php artisan migrate:reset
    The migrate:reset command is used to rollback all the migrations, i.e., it drops all the tables that you have created in your database.

  • php artisan migrate:rollback
    The migrate:rollback is used to rollback the last database migration.

  • php artisan migrate:status
    The migrate:status command is used to show the status of each migration.
Back to list

Leave a Reply

Your email address will not be published. Required fields are marked *