【问题标题】:why @inject method is not working on the live server为什么@inject 方法在实时服务器上不起作用
【发布时间】:2016-02-18 15:19:53
【问题描述】:

我正在开发一个 laravel 5 应用程序。在我的代码中,我注入了一个在 App/Utilities/class.php 中创建的类。在我的宅基地机器上它工作正常,我使用 forge 将文件推送到托管在 Digital Ocean 上的服务器,一切正常,直到 3 天前我开始收到 Class not Found 错误。

你有过这样的错误吗? 你怎么能解决它?

【问题讨论】:

    标签: laravel-5 digital-ocean inject forge


    【解决方案1】:

    也许这是作曲家自动加载的问题。试试这个:

    composer dump-autoload -o
    

    【讨论】:

      猜你喜欢
      • 2014-12-08
      • 2013-03-28
      • 1970-01-01
      • 2014-01-09
      • 1970-01-01
      • 2013-12-28
      • 2019-05-22
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多