@@ 79-81 (lines=3) @@ | ||
76 | protected function fixCommand($command) |
|
77 | { |
|
78 | $isMigrateCommand = Str::startsWith($command, 'migrate') === true && Str::startsWith($command, 'migrate:status') === false; |
|
79 | if (($isMigrateCommand || Str::startsWith($command, 'db:seed') === true) && strpos($command, '--force') === false) { |
|
80 | $command .= ' --force'; |
|
81 | } |
|
82 | ||
83 | $isLaravel55 = $this->laravel !== null && version_compare($this->laravel->version(), 5.5, '>='); |
|
84 | if (($isLaravel55 && Str::startsWith($command, 'vendor:publish') === true) && strpos($command, '--all') === false) { |
|
@@ 84-86 (lines=3) @@ | ||
81 | } |
|
82 | ||
83 | $isLaravel55 = $this->laravel !== null && version_compare($this->laravel->version(), 5.5, '>='); |
|
84 | if (($isLaravel55 && Str::startsWith($command, 'vendor:publish') === true) && strpos($command, '--all') === false) { |
|
85 | $command .= ' --all'; |
|
86 | } |
|
87 | ||
88 | return $command; |
|
89 | } |