Answer the question
In order to leave comments, you need to log in
Route::patch throws MethodNotAllowedHttpException?
Doing an update of the record
Route::patch( 'product/{id}', '[email protected]' );
public function update(Request $request, $product_id)
{
$product = Product::find($product_id);
return $request->all();
}
<form action="/product/{{ $product->product_id }}" method="patch"> //post пробовал
{{ csrf_field() }}
inputs....
</form>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question