PHPackages                             tuytoosh/active - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. tuytoosh/active

ActiveLibrary[Templating &amp; Views](/categories/templating)

tuytoosh/active
===============

Active class in blade templates

1.8.2(3y ago)141.7k—0%MITPHPPHP \*

Since May 6Pushed 2y ago1 watchersCompare

[ Source](https://github.com/tuytoosh/active)[ Packagist](https://packagist.org/packages/tuytoosh/active)[ RSS](/packages/tuytoosh-active/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (4)Dependencies (2)Versions (15)Used By (0)

Active class directive for Laravel blade
========================================

[](#active-class-directive-for-laravel-blade)

Installation
------------

[](#installation)

For installation use this command:

```
composer require tuytoosh/active

```

Publish configuration
---------------------

[](#publish-configuration)

A simple configuration file has a config key for **default active class**. Use

```
php artisan vendor:publish --tag=config --force

```

in order to publish the configuration file. The config key is located in `./config/active.php` file and you can replace the default value with your own. In the configuration you can change default `active` and `inactive` classes. For example you can use tailwind classes to activate or deactivate navbar menu items:

```
