2
I am using the code below to assign the class "active" when on the route "product" or "product/create".
<li {!! Request::is('produto', 'produto/create')? 'class="active"' : null !!}>
Now I need to do the same when editing the product, and the editing route has a variable that is the product id, how do I solve this?
Example of routes:
produto/1/edit
produto/7/edit
Show! vlw bro worked.
– Raylan Soares