letrunghieu / active

The helper class for Laravel applications to get active class base on current route
https://www.hieule.info/tag/laravel-active/
MIT License
414 stars 83 forks source link

Add new method: query($key, $value, $class) #13

Closed ilumos closed 9 years ago

ilumos commented 9 years ago

For checking URLs such as:

http://my.app?tab=profile

Active::query('tab', 'profile')

I have not written an accompanying test as I am very new to testing - sorry.

letrunghieu commented 9 years ago

I'll write unit test for this feature soon :smile:

ilumos commented 9 years ago

Awesome, thank you.

letrunghieu commented 9 years ago

The new method has been released in version 1.3.1 (for Laravel 4) and 2.1.1 (for Laravel 5)

ilumos commented 9 years ago

Thanks!