Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Gerira's avatar

Missing required parameters for [Route: products.view] [URI: {lang}/categories/view/{catID}].

Hello. I have a named route called products.view.

It is a prefixed route, with lang for localization, and it has catID parameter as the last parameter. Inside my blade view, I'm trying to pass those two parameters but I'm receiving the error from the title.

This is my code in blade template

{{ route('products.view', ['lang'=>App::getLocale(),'catID'=>$category->id]) }}

What am I doing wrong here?

0 likes
1 reply
tykus's avatar

Show us your route definition incl. the route group

Please or to participate in this conversation.