title: Laravel Jetstream - Navigation - Passing route name data to :active navigation
body: <p>In my <code>navigation-dropdown.blade.php</code> (from <a href="https://jetstream.laravel.com/" rel="nofollow noreferrer">Laravel Jetstream</a>), I have:</p>
  <pre><code>        &lt;x-jet-responsive-nav-link href=&quot;{{ route('dashboard') }}&quot; :active=&quot;request()-&gt;routeIs('dashboard')&quot;&gt;
              {{ __('Dashboard') }}
          &lt;/x-jet-responsive-nav-link&gt;
  
          &lt;x-jet-responsive-nav-link href=&quot;/purchases&quot; :active=&quot;request()-&gt;routeIs('purchases.index')&quot;&gt;
              {{ __('Purchases') }}
          &lt;/x-jet-responsive-nav-link&gt;                       
  
          &lt;x-jet-responsive-nav-link href=&quot;/debug&quot; :active=&quot;request()-&gt;routeIs('debug')&quot;&gt;
              {{ __('Debug') }}
          &lt;/x-jet-responsive-nav-link&gt;            
  </code></pre>
  <p>In my <code>routes/web.php</code>, I have:</p>
  <pre><code>Route::middleware(['auth:sanctum', 'verified'])-&gt;resource('purchases','App\Http\Controllers\PurchaseController')-&gt;name('*', 'purchases');
  
  Route::middleware(['auth:sanctum', 'verified'])-&gt;get('/debug', [DebugController::class, 'index'])-&gt;name('debug');
  </code></pre>
  <p>I visit <code>/purchases</code> and <code>:isActive</code> does not set, but when I visit <code>/debug</code>, it does. In other words, appending <code>-&gt;name('debug')</code> to the route adds an underline to the 'Debug' when you are on the <code>/debug</code> view as expected.</p>
  <p>However, appending <code>-&gt;name('purchases')</code> to the resource route causes an exception about not enough parameters. Calling <code>-&gt;name('*', 'purchases')</code> throws no exception but does nothing (there is no underline on this navigation item).</p>
  <p>Whilst on the <code>/debug</code> view, you see:</p>
  <p><a href="https://i.stack.imgur.com/uUaVG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/uUaVG.png" alt="Screenshot of navigation with Debug underlined" /></a></p>
  <p>Whilst on the <code>/purchases</code> view, you see no underline:</p>
  <p><a href="https://i.stack.imgur.com/ULc0b.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ULc0b.png" alt="Missing underline on navigation item" /></a></p>
  <p>How do I fix this? I have also tried:</p>
  <pre><code>        &lt;x-jet-responsive-nav-link href=&quot;/purchases&quot; :active=&quot;request()-&gt;routeIs('purchases')&quot;&gt;
              {{ __('Purchases') }}
          &lt;/x-jet-responsive-nav-link&gt;                       
  </code></pre>