代码之家  ›  专栏  ›  技术社区  ›  BizzyBob

如何让PhpStorm识别Laravel外观?

  •  1
  • BizzyBob  · 技术社区  · 7 年前

    $user = User::find($id);
    

    所以它总是抱怨:“在用户中找不到‘find’方法”

    error message

    我有Laravel插件和barryide助手。我还需要做什么?

    1 回复  |  直到 7 年前
        1
  •  4
  •   Rich    7 年前

    从terminal中项目的根目录:

    php artisan clear-compiled
    php artisan ide-helper:generate
    

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

        2
  •  0
  •   Thomas Venturini    6 年前

    @mixin PhpDocBlock属性将通过facade访问的类链接到facade。

    推荐文章