Home  >  Article  >  Backend Development  >  【laravel框架】compile.php文件的生成方法

【laravel框架】compile.php文件的生成方法

WBOY
WBOYOriginal
2016-06-23 13:18:20756browse

方法一:将项目app/config/app.php或者app/config/环境目录/app.php,中的'debug'设置成false,之后再执行php artisan optimize命令,即可在项目的bootstrap目录下看compile.php文件



方法二:直接执行 php artisan optimize --force命令,即可在项目bootstrap目录中看到compile.php文件



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