/** * Checks if the href is active. * * @param $href * @return bool * @author Bertrand Kintanar */ protected static function isURLActive($href) { $request = Request::capture(); if ($request->is($href . '*')) { return true; } return false; }