1

I used this Route type put in order to be able to update the profile of users:

Route::put('profile/{id}' , [ProfileController::class, 'updateProfile'])->name('user.profile-update');

However, when I link this route in my user-profile as :

{{route('users.profile-update', $user->id)}} 

it's not reading it.

brombeer
  • 8,716
  • 5
  • 21
  • 27
  • 2
    You need to use a `form` with `method="post"` and need to pass hidden attribute method as `@method('PUT')` – STA Jan 21 '22 at 09:41
  • add your form code here or check this https://stackoverflow.com/questions/28143674/laravel-form-html-with-put-method-for-put-routes – Hamelraj Jan 21 '22 at 09:46
  • Does this answer your question? [The POST method is not supported for this route. Supported methods: GET, HEAD. Laravel](https://stackoverflow.com/questions/55178647/the-post-method-is-not-supported-for-this-route-supported-methods-get-head-l) – steven7mwesigwa Jan 21 '22 at 09:57

0 Answers0