Skip to content

hilltool/active

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Active for Laravel

Build Status Latest Stable Version Code Climate Test Coverage Total Downloads License

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.

  • If you are using Laravel 4, see the 1.x versions.
  • If you are using Laravel 5 with the legacy 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.

Installation

Add this package to your composer.json file and run composer update once.

"hieu-le/active": "^3.0"

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,

For more details about usage see: this page

About

The helper class for Laravel 4/5 applications to get active class base on current route

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%