I develop my site in php with the Laravel framework. Below is the source code for my drop-down menu, however the submenus are not displayed on browsers. What can be the problem ?
@guest
My Account
@endguest
@auth
<button type="button" class="btn btn-light dropdown-toggle" data-bs-toggle="dropdown" aria-expanded="false">
{{Auth::user()->name}}
</button>
<ul class="dropdown-menu">
<li><a class="dropdown-item" href="{{route('app_logout')}}">Logout</a></li>
</ul>
@endauth
</div>
I tried with Firefox, Google Chrome and Microsoft Edge browsers and I still have nothing
New contributor
simplice wambe is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.