Home  >  Article  >  Backend Development  >  laravel5.0升级到5.1

laravel5.0升级到5.1

WBOY
WBOYOriginal
2016-06-20 12:54:481054browse

1、修改composer.json。将其中的"laravel/framework": "5.0.*"修改为"laravel/framework": "5.1.*";

2、在bootstrap下创建目录cache,在cache目录中放入一个.gitignore文件,内容为:

*

!.gitignore

3、修改bootstrap下的autoload.php文件,将$compiledPath = __DIR__.'/../vendor/compiled.php';修改为:$compiledPath = __DIR__.'/cache/compiled.php';

4、运行composer update;


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn