update:修复导出
This commit is contained in:
parent
3947ba7386
commit
9ec1285cb9
@ -33,6 +33,7 @@ class UpdatePermissions extends Migrator
|
|||||||
|
|
||||||
$table->removeColumn('method')
|
$table->removeColumn('method')
|
||||||
->removeColumn('hide_children_in_menu')
|
->removeColumn('hide_children_in_menu')
|
||||||
|
->renameColumn('status', 'hidden')
|
||||||
->update();
|
->update();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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) . ucfirst($module) . 'PermissionSeed.php', str_replace('{DATA}', $data, $stub));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user