Answer the question
In order to leave comments, you need to log in
Why doesn't PhpStorm understand blade directives in a Laravel project?
Hello. I have Blade directives in a Laravel project underlined. I hover over them and messages appear.
For example, I point to @if (Route::has('login'))
AND I get Directive is not closed
Although it is closed.
I direct on @else
And I receive Missing opening directive
Though the opening directive is.
Why is that? I am attaching screenshots. Laravel Plugin is worth it, Blade Support is worth it, _ide_helper.php is worth it.
Answer the question
In order to leave comments, you need to log in
Faced about the same problem, only wrote cannot find declaration to go.
Reloading composera helped:composer dump-autoload -o
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question