1 | <?php |
||
18 | class DbRestore extends Command |
||
19 | { |
||
20 | use ConfirmableTrait; |
||
21 | |||
22 | /** |
||
23 | * The name and signature of the console command. |
||
24 | * |
||
25 | * @var string |
||
26 | */ |
||
27 | protected $signature = 'db:restore {file : Dump file path to restore.} |
||
28 | {--database= : The database connection to use.} |
||
29 | {--force : Force the operation to run when in production.}'; |
||
30 | |||
31 | /** |
||
32 | * The console command description. |
||
33 | * |
||
34 | * @var string |
||
35 | */ |
||
36 | protected $description = 'Restore mysql dump.'; |
||
37 | |||
38 | /** |
||
39 | * Execute the console command. |
||
40 | * |
||
41 | * @return mixed |
||
42 | */ |
||
43 | public function handle() |
||
63 | |||
64 | protected function getDatabase(): string |
||
70 | |||
71 | protected function getFilePath(): string |
||
77 | } |
||
78 |