title: Override nova route
body: <p>I'm using nova 4 and laravel 9</p>
  <p>I want to override the default nova controller
  so when I click button save
  will post/put to customController</p>
  <pre><code>use App\Http\Controllers\Post\StoreController;
  use App\Http\Controllers\Post\UpdateController;
  
  Route::post('/{any}/{resource}/new', [StoreController::class, 'handle'])
      -&gt;where([
          'any' =&gt; 'nova-api',
          'resource' =&gt; 'posts'
      ])-&gt;name('nova.api.')-&gt;middleware('nova');
  
  Route::put('/{any}/{resource}/{resourceId}', [UpdateController::class, 'handle'])
      -&gt;where([
          'any' =&gt; 'nova-api',
          'resource' =&gt; 'posts'
      ])-&gt;name('nova.api.')-&gt;middleware('nova');
  </code></pre>
  <p>I've tried like this but still not working</p>
  <p><a href="https://i.stack.imgur.com/EQonb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/EQonb.png" alt="enter image description here" /></a></p>
  <p>when I click save, the route still not overriding
  for sure I just add <code>dd('tes')</code> on my controller for  check if this route work or not</p>