1 | <?php |
||
13 | class MigrateFresh extends Command |
||
14 | { |
||
15 | use ConfirmableTrait; |
||
16 | |||
17 | /** |
||
18 | * The console command name. |
||
19 | * |
||
20 | * @var string |
||
21 | */ |
||
22 | protected $signature = 'migrate:fresh {--database= : The database connection to use.} |
||
23 | {--force : Force the operation to run when in production.} |
||
24 | {--path= : The path of migrations files to be executed.} |
||
25 | {--seed : Indicates if the seed task should be re-run.}'; |
||
26 | |||
27 | /** |
||
28 | * The console command description. |
||
29 | * |
||
30 | * @var string |
||
31 | */ |
||
32 | protected $description = 'Drop all database tables and re-run all migrations'; |
||
33 | |||
34 | /** |
||
35 | * Execute the console command. |
||
36 | * |
||
37 | * @return mixed |
||
38 | */ |
||
39 | public function handle() |
||
72 | |||
73 | public function getTableDropper(): TableDropper |
||
77 | } |
||
78 |