0
I made a layout in which I want to put a navbar where I want to put a dropdown, but the dropdown menu does not appear, only the button is there... I tried to put Jquery but it didn’t work, follow the page:
<!DOCTYPE html>
@Yield('title', 'Friend’s Petshop')
<link rel="stylesheet" href="js/app.js">
<link rel="stylesheet" href="css/app.css">
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<a class="navbar-brand" href="/PetShop/public">PetShop do Amigão</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
<li class="nav-item active">
<a class="nav-link" href="/PetShop/public">Home <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Rações</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Coleiras</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Remédios</a>
</li>
</ul>
<ul class="navbar-nav navbar-right">
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Olá, Usuário
</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
<a class="dropdown-item" href="#">Minha Conta</a>
<a class="dropdown-item" href="#">Meu Carrinho</a>
<a class="dropdown-item" href="#">Sair</a>
</div>
</li>
</ul>
</div>
@Yield('content')