All individual subscriptions are 50% off this week only!

2 months ago

Comment blade directives starting with @

Posted 2 months ago by octal

Hello, sometimes I have code like this

@if (Route::has('register'))
     <li class="nav-item">
          <a class="nav-link" href="{{ route('register') }}">{{ __('Register') }}</a>

For blade code, I know I can use {{-- --}} to comment out blade output. But, how can I comment out directive starting with @ (like @if for example). ???

Please sign in or create an account to participate in this conversation.