Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如何批量添加需要导入数据的模型 #2127

Open
macarthor opened this issue Jul 5, 2024 · 0 comments
Open

如何批量添加需要导入数据的模型 #2127

macarthor opened this issue Jul 5, 2024 · 0 comments

Comments

@macarthor
Copy link

macarthor commented Jul 5, 2024

  • Laravel Version: #.#.#
  • PHP Version: #.#.#
  • Dcat Admin Version: #.#.#

Description:

比如有一个模型,新增每一条数据时都需要上传一个图片和一个文件

能不能完成这个效果:批量添加模型数据,导入一个excel,里边有图片和文件都本地路径的列,比如:

|名称|图片路径|文件路径|
|模型1|c:\1.jpg|c:\1.txt|
|模型2|c:\2.jpg|c:\2.txt|
|模型3|c:\3.jpg|c:\3.txt|

Steps To Reproduce:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant