Search code examples
htmllaravelphpstorm

Wrong HTML warning in PhpStorm


I need to use custom if statement in Laravel, but I don't know why PhpStorm says:

tag start is not closed!

Here is my code:

<a href="#" @RouteNameCheck('home') class="white-color" @endRouteNameCheck></a>

Screenshot


Solution

    1. In PhpStorm, open Preferences, and navigate to Languages and Frameworks -> PHP -> Blade
    2. Click on the Directives tab.
    3. Add your new blade directives