The POST method is not supported for this route. Supported methods: PUT.

Updated at 08-Mar-2022, By samar

The POST method is not supported for this route. Supported methods: PUT.

Hello everyone, in this post we will examine how to solve the "The POST method is not supported for this route. Supported methods: PUT." programming puzzle.

Error: The POST method is not supported for this route. Supported methods: PUT occurs when you try to use another method in HTML form and created route with another method. You have created the route with PUT method in route file and try to submit the form with post method in Laravel. Method should be same in route and HTML form.
  • HTML Form with put method using @method in Laravel blade

    @method('PUT')
    
    //Example
    <form action="{{ route('user.update') }}" method="POST">
    @csrf
    @method('PUT')
    
    //routes\web.php
    Route::put('/update-profile', 'UserControlle[email protected]')->name('user.update');
    

Back to code snippet queries related laravel