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 82 forks source link

Error when viewing 404 #50

Open heychazza opened 3 years ago

heychazza commented 3 years ago

Hi @letrunghieu,

Thanks for creating this! When visiting a 404 page, I get the following error:

TypeError
in_array(): Argument #2 ($haystack) must be of type array, string given (View: navbar.blade.php)

Any chance you could fix this please, only happens for if_route_pattern

lamtranb commented 1 year ago

This issue is old but I made #56 for this