【问题标题】:Error 'Class 'ZipArchive' not found' in laravel-5.8 with maatwebsite/excel使用 maatwebsite/excel 在 laravel-5.8 中找不到错误“找不到类 'ZipArchive'”
【发布时间】:2020-02-25 19:45:56
【问题描述】:

在 laravel 中使用 maatwebsite/excel 导出表用户时出现错误 Class 'ZipArchive' not found
我已经尝试过sudo apt-get install php7.0-zip,但这给出了sudo: apt-get: command not found。那么除了sudo apt-get install php7.0-zip还有其他方法可以解决吗?或者我该如何解决sudo: apt-get: command not found的问题?

【问题讨论】:

  • 您尝试运行sudo apt-get install php7.0-zip 的哪个操作系统不起作用?
  • 我正在尝试在 Apple macOS 上运行它,@JeanMarcos

标签: laravel-5.8 apt-get maatwebsite-excel


【解决方案1】:

您的 php 似乎没有内置 zip 扩展名。请尝试按照以下步骤安装带有扩展名的版本:

brew update
brew install php@7.3
brew link php@7.3

【讨论】:

    猜你喜欢
    • 2019-05-30
    • 2019-06-02
    • 1970-01-01
    • 2018-11-01
    • 2019-09-16
    • 1970-01-01
    • 2021-12-02
    • 2019-11-06
    相关资源
    最近更新 更多