i ran into a situation where i need to totally remove most of my inactive class and be replaced by an active class and vice versa so i added one additional variable in the isRoute class so i don't need to write an additional line of condition to check if the page reloads. I hope this could be added on all of the checkers to have a bit more flexibility.
public function isRoute($route, $active = NULL, $inactive = NULL)
{
$this->setActive($active);
return ($this->request->routeIs($route) ? $this->active : $inactive);
}
Thank you!