str_contains(url()->current(), 'faq') ? 'active' : ''
The Str::contains method determines if the given string contains the given value.