I want to implement that anywhere on the site, when user is clicking on Logout
button, to get a javascript confirm box
.
Laravel logout button is looking like :
<a class="dropdown-item" href="{{route('logout')}}" onclick="event.preventDefault();document.getElementById('logout-form').submit();">
<span class="text-danger">
<i class="fa fa-fw fa-sign-out"></i>Logout
</span>
</a>