This is the code I used in the blade file:

```
<form action="addTo_cart" method="post">

```

This is the route I used in the web.php

```
Route::post("/addTo_cart",[ProductController::class, 'addToCart']);

```

and I got the error that,

> 
> The POST method is not supported for this route. Supported methods: GET, HEAD.
> 
> 
>