'How to check Request::is('/new/*') in Blade view in Laravel 6

How can I check Request::is('/new/*') in a Blade view in Laravel 6? I have no sidebar on the home page. However, I want the sidebar on domain.com/new/x pages like domain.com/new/231.

Here's what I did, but it's not working.

@if(Request::is('/new/*'))
    @include('inc.sidebar')
@endif


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source