【问题标题】:In Laravel, what is meant by the term "clear compiled class"在 Laravel 中,术语“清除编译类”是什么意思
【发布时间】:2014-11-12 05:53:04
【问题描述】:

我正在尝试在 Laravel 中使用一个名为 ide-helper 的服务类。它为 PHPStorm 提供了自动完成功能。它没有按预期运行。我被告知我应该运行 php artisan clear-compiled。

“清晰编译”一词是什么意思?

https://github.com/barryvdh/laravel-ide-helper#automatic-phpdoc-generation-for-laravel-facades

非常感谢

【问题讨论】:

    标签: laravel-4 phpstorm


    【解决方案1】:

    Laravel 使用优化的类加载器以获得更好的性能。

    命令php artisan clear-compiled删除以下2个文件:

    1. bootstrap/compiled.php 在优化类时创建。
    2. app/storage/meta/services.json 这个文件是在 Laravel 尝试优化应用程序使用的服务提供者的加载时创建的。

    有关性能优化的更多信息,另请参阅http://laravel-recipes.com/recipes/60/optimizing-the-framework-for-better-performance

    【讨论】:

      猜你喜欢
      • 2022-09-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-01-31
      • 1970-01-01
      • 2011-09-26
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多