简体   繁体   中英

Error while upgrading laravel from 5.0 to 5.1

Today I decided to upgrade my app from Laravel 5.0 to 5.1. But while upgrading, I am facing the following issue:

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

Please help me. I need to get my app up and running once again. Thank You.

I was facing the same error, and the issue was:

I created manually the files compiled.php , routes.php , config.php , and services.json inside bootstrap/cache folder, but those files do not need to exist, they will be generated by Laravel application.

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM