优化导出命令
This commit is contained in:
parent
96f04545db
commit
e717f56416
@ -38,7 +38,7 @@ class ExportDataCommand extends Command
|
||||
$data = Tree::done($data, 0, $parent);
|
||||
}
|
||||
|
||||
file_put_contents(root_path() . DIRECTORY_SEPARATOR . $table . '.php', "<?php\r\n return " . var_export($data, true));
|
||||
file_put_contents(root_path() . DIRECTORY_SEPARATOR . $table . '.php', "<?php\r\n return " . var_export($data, true) . ';');
|
||||
|
||||
$output->info('succeed!');
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user