Developer Snippet Diary

laravel logout error The GET method is not supported for this route. Supported methods: POST.

<form action="{{ route('logout') }}" method="POST">
  @csrf 
  <button class="nav-link text-body font-weight-bold px-0" type="submit"> Logout</button>
</form>
Posted by: Zeeshan
Email: zakhtar342@gmail.com