更新到处数据

This commit is contained in:
JaguarJack 2020-09-05 16:33:34 +08:00
parent 7fbee46c73
commit d0a9a41c68

View File

@ -64,7 +64,7 @@ class ExportDataCommand extends Command
{ {
$stub = file_get_contents(dirname(__DIR__) . DIRECTORY_SEPARATOR . 'stubs' . DIRECTORY_SEPARATOR . 'permissionSeed.stub'); $stub = file_get_contents(dirname(__DIR__) . DIRECTORY_SEPARATOR . 'stubs' . DIRECTORY_SEPARATOR . 'permissionSeed.stub');
file_put_contents(CatchAdmin::moduleSeedsDirectory($module) . 'permissionSeed.php', str_replace('{DATA}', $data, $stub)); file_put_contents(CatchAdmin::moduleSeedsDirectory($module) . 'PermissionSeed.php', str_replace('{DATA}', $data, $stub));
} }
} }