I have some problems with getting some info from database in Laravel. I'm trying to use where method and specify id that I need to but I always have error like

```
Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException: The GET method is not supported for this route. Supported methods: POST.

```

Here is the code
Controller

```
public function select_category($category_id){
        $products = Products::where('category_id', $category_id)->get();

        return $products;
    }

```

Api

```
Route::get('products/{category_id}', 'ProductsController@select_category');

```

When I delete `$category_id` and where, only have like `Products::all();` works fine, but need to specify where to search.

Link how I specify the $category\_id is `http://localhost:8000/api/products/?category_id=16`