I
I
Ilya2014-09-30 23:29:13
phpstorm
Ilya, 2014-09-30 23:29:13

How to use PhpDoc in Blade View in Phpstrom IDE?

phpstrom 8 added support for blade. Great, although reformat code doesn't work.
I'm trying to use phpDoc in a blade view to get autocomplete working.
But here's the problem. As soon as I write @var , then PhpStorm thinks that this is a blade element and destroys the whole structure. How to fix?

/**
* @var $var Controller
**/

2835c6c9c863496cbe3a80cbe1806cfe.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ilya, 2014-10-01
@hrhr99

The trivial solution is to enclose PhpDoc in {{ }}

{{
/**
* @var $var Controller
**/
}}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question