user5861184
user5861184

Reputation:

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

Upvotes: 2

Views: 356

Answers (1)

Shahaf Antwarg
Shahaf Antwarg

Reputation: 497

  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

Upvotes: 3

Related Questions