Im trying to do a post request via a form in my blade template with a parameter in the url . Here is my form:
<form action="/products/{{$produit->id}}" method="post">
{{ csrf_field() }}
<input type="text" name="avis_body" />
<input type="submit" value="Send" />
</form>
Here is my web.php:
Route::post('/products/{$id}', function($id){
return $id;
});