Dynamic Body Classes for Laravel

Quickly add body classes to your Laravel app based on rules you set.

Example implementations:

  • Browsing as a guest might add user-isGuest as a class.
  • Browsing an admin panel might add admin-panel as a class.
  • All user profile routes might have user-profile as a class.

It's easy to write your own rules!