Skip to content

Commit

Permalink
migrate:reset: --path may be a single string
Browse files Browse the repository at this point in the history
Fixed situation when `migrate:reset` is run from application:
```
Artisan::call('migrate:reset', [
    '--path' => 'database/migrations',
]);
```
  • Loading branch information
mingalevme authored Mar 29, 2017
1 parent 5a712bc commit 88f369a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Database/Console/Migrations/BaseCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ protected function getMigrationPaths()
// migrations may be run for any customized path from within the application.
if ($this->input->hasOption('path') && $this->option('path')) {
$paths = [];
foreach ($this->option('path') as $path) {
foreach ((array) $this->option('path') as $path) {
$paths[] = $this->laravel->basePath().'/'.$path;
}

Expand Down

0 comments on commit 88f369a

Please sign in to comment.