Add active class depending on the route laravel

PHOTO EMBED

Fri Jun 11 2021 20:55:48 GMT+0000 (Coordinated Universal Time)

Saved by @jeromew #php #laravel

class="{{ Request::is('products.index') ? 'active' : '' }}"
content_copyCOPY