thanhtut / easy-active
To provide the active class in html markup for laravel
Installs: 6
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/thanhtut/easy-active
This package is auto-updated.
Last update: 2025-12-22 22:58:57 UTC
README
Active is a helper package for Laravel that makes it easy to provide the active class in html markup.
Installation
Install with composer:
composer require thanhtut/easy-active dev-master
And add the service provider in config/app.php
'providers' => [
........,
Thanhtut\EasyActive\EasyActiveServiceProvider::class,
]
'aliases' => [
........,
'Active' => Thanhtut\EasyActive\Active::class,
]
Usage
{{Active::is_active('home')}} // http://localhost:8000/home
<a href="/home" class="{{Active::is_active('home')}}" >Home</a>