|
@@ 62-75 (lines=14) @@
|
| 59 |
|
$output->writeln(['<info>All successfully copied!</info>']); |
| 60 |
|
} |
| 61 |
|
|
| 62 |
|
protected function moveMigrate(ProgressBar $progress) |
| 63 |
|
{ |
| 64 |
|
$pathToMigrationsLaravel = $_SERVER["PWD"] . '/database/migrations/'; |
| 65 |
|
$pathToStubs = __DIR__ . '/../database/migrations/stubs/'; |
| 66 |
|
|
| 67 |
|
$this->createDir($pathToMigrationsLaravel); |
| 68 |
|
|
| 69 |
|
foreach ($this->listFileMigrations as $name => $migrate) |
| 70 |
|
{ |
| 71 |
|
$fileName = $pathToMigrationsLaravel . $this->getDateNormalize() . $migrate . '.php'; |
| 72 |
|
file_put_contents($fileName, $this->getContent($pathToStubs . $name)); |
| 73 |
|
$progress->advance(); |
| 74 |
|
} |
| 75 |
|
} |
| 76 |
|
|
| 77 |
|
protected function moveSeeders(ProgressBar $progress) |
| 78 |
|
{ |
|
@@ 77-90 (lines=14) @@
|
| 74 |
|
} |
| 75 |
|
} |
| 76 |
|
|
| 77 |
|
protected function moveSeeders(ProgressBar $progress) |
| 78 |
|
{ |
| 79 |
|
$pathToSeedersLaravel = $_SERVER["PWD"] . '/database/seeds/'; |
| 80 |
|
$pathToSeed = __DIR__ . '/../database/seeds/stubs/'; |
| 81 |
|
|
| 82 |
|
$this->createDir($pathToSeedersLaravel); |
| 83 |
|
|
| 84 |
|
foreach ($this->listFilesSeeder as $name => $seed) |
| 85 |
|
{ |
| 86 |
|
$fileName = $pathToSeedersLaravel . $seed; |
| 87 |
|
file_put_contents($fileName, $this->getContent($pathToSeed . $name)); |
| 88 |
|
$progress->advance(); |
| 89 |
|
} |
| 90 |
|
} |
| 91 |
|
|
| 92 |
|
protected function moveConfig(ProgressBar $progress) : void |
| 93 |
|
{ |