mirror of
https://github.com/ZorgCC/lumen-generators.git
synced 2025-01-13 13:57:55 +03:00
fix: rules not support space
replace space by comma (i think the bug is same for #33)
This commit is contained in:
parent
9ab561df2f
commit
cc39d720c4
@ -110,6 +110,9 @@ class ResourcesCommand extends BaseCommand {
|
||||
$name = $field['name'];
|
||||
$schema = $this->convertArray(str_replace(':', '.', $field['schema']), ' ', ':');
|
||||
$rules = (isset($field['rules'])) ? trim($field['rules']) : '';
|
||||
// Replace space by comma
|
||||
$rules = str_replace(' ', ',', $rules);
|
||||
|
||||
$tags = $this->convertArray($field['tags'], ' ', ',');
|
||||
|
||||
$string = "{$name};{$schema};{$rules};{$tags}";
|
||||
|
Loading…
x
Reference in New Issue
Block a user