Add active class depending on the route laravel

PHOTO EMBED

Fri Jun 11 2021 20:55:48 GMT+0000 (UTC)

Saved by @jeromew #php #laravel

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