public function is() { foreach (func_get_args() as $pattern) { if (Str::is($pattern, $this->currentRouteName())) { return true; } } return false; }