I'm using the code below to assign the "active" class when on the "product" or "product / create" route.
<li {!! Request::is('produto', 'produto/create')? 'class="active"' : null !!}>
Now I need to do the same in the product edition, the editing route has a variable that is the product id, how do I solve it?
Example routes:
produto/1/edit
produto/7/edit