Skip to content

Commit

Permalink
Merge pull request #23 from zhouyixiang/master
Browse files Browse the repository at this point in the history
 Fix array to string conversion error
  • Loading branch information
digitaldreams committed Nov 18, 2018
2 parents 8360909 + 15b1a70 commit 83d34c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lara-crud/Crud/MigrationCrud.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ private function rules()
}
//for enum data type we will use in validator.
if ($dataType == 'enum') {
$retVals = str_replace(",", "','", $column->options());
$retVals = join("', '", $column->options());
$params = '[\'' . $retVals . '\']';
} elseif ($dataType == 'varchar') {
$params = $column->length();
Expand Down Expand Up @@ -226,4 +226,4 @@ public function generateClassName($table)
}
return $class;
}
}
}

0 comments on commit 83d34c7

Please sign in to comment.