【问题标题】:Error while upgrading laravel from 5.0 to 5.1将 laravel 从 5.0 升级到 5.1 时出错
【发布时间】:2015-08-30 20:45:53
【问题描述】:

今天我决定将我的应用从 Laravel 5.0 升级到 5.1。但是在升级时,我面临以下问题:

Catchable fatal error: Argument 1 passed to Illuminate\Config\Repository::__construct() must be of the type array, integer given, called in /home/vagrant/Code/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/LoadConfiguration.php on line 32 and defined in /home/vagrant/Code/vendor/laravel/framework/src/Illuminate/Config/Repository.php on line 23

请帮助我。我需要让我的应用程序再次启动并运行。谢谢。

【问题讨论】:

    标签: php laravel laravel-5 laravel-validation


    【解决方案1】:

    我遇到了同样的错误,问题是:

    我在bootstrap/cache文件夹中手动创建了compiled.phproutes.phpconfig.phpservices.json文件,但这些文件不需要存在,它们将由Laravel应用程序生成。

    https://github.com/laravel/laravel/tree/master/bootstrap/cache

    【讨论】:

      【解决方案2】:

      del storage/bootstrap/cache/[files],这解决了我的问题

      【讨论】:

        猜你喜欢
        • 2015-08-26
        • 1970-01-01
        • 2016-05-11
        • 2016-03-27
        • 1970-01-01
        • 2017-08-24
        • 2016-03-31
        • 2018-07-02
        • 1970-01-01
        相关资源
        最近更新 更多