1 | <?php |
||
11 | class MigrateFresh extends Command |
||
12 | { |
||
13 | use ConfirmableTrait; |
||
14 | |||
15 | /** |
||
16 | * The console command name. |
||
17 | * |
||
18 | * @var string |
||
19 | */ |
||
20 | protected $signature = 'migrate:fresh {--seed} {--force}'; |
||
21 | |||
22 | /** |
||
23 | * The console command description. |
||
24 | * |
||
25 | * @var string |
||
26 | */ |
||
27 | protected $description = 'Nuke the entire db and rebuild it using migrations.'; |
||
28 | |||
29 | /** |
||
30 | * Execute the console command. |
||
31 | * |
||
32 | * @return mixed |
||
33 | */ |
||
34 | public function handle() |
||
53 | |||
54 | public function dropAllTables() |
||
68 | } |
||
69 |