کاربرد دستور:
php artisan migrate:reset
به این شکله که میاد و تمام میگریت هایی که تا به حال انجام دادین رو رول بک (Rollback) میکنه و به حالت اولیه برمیگردونه، یعنی تمام جداول رو به حالت اولیه برمیگردونه و پاک میکنه.
دقیقا همانند دستور:
php artisan migrate:fresh
با این تفاوت که دستور فرش (Fresh) دوباره دستور:
php artisan migrate
رو اجرا میکنه در مجموع دستور فرش (Fresh) تشکیل شده از دستور ریست (Reset) و میگریت دوباره.
که در استفاده از دستور ریست (Reset) از آپشن های:
--database[=DATABASE] The database connection to use
--force Force the operation to run when in production
--path[=PATH] The path(s) to the migrations files to be executed (multiple values allowed)
--realpath Indicate any provided migration file paths are pre-resolved absolute paths
--pretend Dump the SQL queries that would be run
-h, --help Display help for the given command. When no command is given display help for the list command
--silent Do not output any message
-q, --quiet Only errors are displayed. All other output is suppressed
-V, --version Display this application version
--ansi|--no-ansi Force (or disable --no-ansi) ANSI output
-n, --no-interaction Do not ask any interactive question
--env[=ENV] The environment the command should run under
-v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
میتونیم استفاده کنیم که از آپشن help-- قابل مشاهده است.