Reputation: 277
<ul>
<li><a href="{{ route('dashboard') }}">Panel</a></li>
<li><a href="{{ route('contact') }}">Contact</a></li>
<li><form style="display: inline;" method="POST" action="{{ route('logout') }}">
<button type="submit">Logout</button>
@csrf
</form></li>
</ul>
This is my codes. But it seems like below:
How can i do like this:
If i use button
and form
instead of a
it's not tidy. If you help me i will be glad.
Upvotes: 0
Views: 30