Laravel 8 dissappear button

  laravel, laravel-8

I’m trying to after the first guest registers that the register button dissappears, but i don’t know how. I tried it this way but it didn’t work.

                    @if(Auth::user()) 
                    
                    @else
                        <li class="nav-item">
                            <a class="nav-link" href="{{ route('register') }}">{{ __('register') }}</a>
                        </li>
                    @endif

Source: Laravel

Leave a Reply