diff --git a/src/OscarAFDev/MigrationsGenerator/MigrateGenerateCommand.php b/src/OscarAFDev/MigrationsGenerator/MigrateGenerateCommand.php index 96dc664..bffc48f 100644 --- a/src/OscarAFDev/MigrationsGenerator/MigrateGenerateCommand.php +++ b/src/OscarAFDev/MigrationsGenerator/MigrateGenerateCommand.php @@ -396,7 +396,7 @@ protected function getExcludedTables() $excludes = ['migrations']; $ignore = $this->option('ignore'); if ( ! empty($ignore)) { - return array_merge($excludes, explode(',', $ignore)); + return array_merge($excludes, preg_split('/[,\s]+/', ignore)); } return $excludes;