How I can make variables autocomplete in the PhpStorm 9 for Blade templates?

前端 未结 4 1111
礼貌的吻别
礼貌的吻别 2021-01-02 06:38

I want PHPdoc blocks were considered within the blade template.

PhpStorm 9, Laravel 5.1, blade template file:



        
4条回答
  •  旧时难觅i
    2021-01-02 06:55

    You can now do it like you wanted:

    
    ...
    {{ $user->email }} <- autocomplete working
    

    see https://blog.jetbrains.com/phpstorm/2017/02/code-completion-in-laravel-blade-templates/

提交回复
热议问题