thanhtut / easy-active
To provide the active class in html markup for laravel
dev-master
2018-11-22 06:05 UTC
Requires
None
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-08-23 00:27:49 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>