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

Argument 1 passed to if_route() must be of the type array, string given #28

Closed jrean closed 8 years ago

jrean commented 8 years ago

Hi,

I followed your documentation and when just simply trying the following code I got the error:

Argument 1 passed to if_route() must be of the type array, string given

active_class(if_route('xxx.xxx'))

I have a route named xxx.xxx...

You should fix your documentation.

Thank you

astroanu commented 8 years ago

+1

astroanu commented 8 years ago

i think it's better to make it accept both string and array. casting it to array inside the helper would be better.

letrunghieu commented 8 years ago

Now, this feature is implemented in version 3.2.0