The helper class for Laravel (4/5) applications to get active class base on current route
summerblue/laravel-active is a Laravel package for the helper class for laravel (4/5) applications to get active class base on current route.
It currently has 4 GitHub stars and 11.135 downloads on Packagist (latest version 9.0.0).
Install it with composer require summerblue/laravel-active.
Discover more Laravel packages by summerblue
or browse all Laravel packages to compare alternatives.
Last updated
The helper class for Laravel applications (both L4 and L5) to get active class base on current url.
This README file is written for the new 3.x version of this package, which is compatible with the Laravel 5 only.
1.x versions.2.x version of this package, you can give a try with the 3.x version (whose API is changed totally) or continue with the 2.x version.Require this package as your dependencies:
composer require summerblue/laravel-active
Append this line to your providers array in config/app.php
HieuLe\Active\ActiveServiceProvider::class,
Append this line to your aliases array in config/app.php
'Active' => HieuLe\Active\Facades\Active::class,
See: How to use Active
if_* functions to be string or array