Skip to content
/ active Public
forked from letrunghieu/active

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

License

Notifications You must be signed in to change notification settings

jybtx/active

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Active for Laravel

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

The helper class for Laravel applications to get active class base on current url.

Since version 7.0, the major version of this library will match the major version of Laravel.

Laravel version Active library version
>= 7.x >= 7.x
6.x 4.x
5.x 3.x
4.x 1.x

Installation

Require this package as your dependencies:

composer require jybtx/active

If you are using Laravel 5.5+, you do not need to manually register the ServiceProvider and Alias.

Append this line to your providers array in config/app.php

Jybtx\Active\ActiveServiceProvider::class,

Append this line to your aliases array in config/app.php

'Active' => Jybtx\Active\Facades\Active::class,

Usage

See: How to use Active

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%