php - put is not supported for this route

Solution:
Try please;
@extends ('layouts.app')
@section('content')
<form action="{{ route('update_blog_path', ['blog' => $blog->id]) }}" method="POST">
@csrf
{{ mehod_field("PUT") }}
<div class="form-group">
<label for="title">Title </label>
<input type="text" name="title" class="form-control" value={{$blog->title}}>
</div>
<div class="form-group">
<label for="title">Content </label>
<input type="text" name="content" class="form-control" value={{$blog->content}}>
</div>
<div class="form-group">
<button type="submit" class="btn btn-outline-primary">Edit</button>
</div>
</form>
@endsection
and
Route
<?php
Route::put('update_blog_path/{blog}', 'BlogController@update')->name("update_blog_path");
And your'e code wrong update term Route::name('update_blog_path')->put('/blogs/{id}','BlogController@updtae');
change update
Answer
Solution:
Looks like you have a typo in your routes file, change
Route::name('update_blog_path')->put('/blogs/{id}','BlogController@updtae');
to
Route::name('update_blog_path')->put('/blogs/{id}','BlogController@update');
You misspelled the method name update.
Share solution ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: videoxxx
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.