Skip to content

Commit

Permalink
fix cached route overriding
Browse files Browse the repository at this point in the history
  • Loading branch information
ragingdave committed May 13, 2021
1 parent cea9d17 commit 58e75c7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/FieldServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@ public function boot()
{
// Override ActionController after NovaServiceProvider loaded
Event::listen(NovaServiceProviderRegistered::class, function () {
app('router')->middleware('nova')->post('/nova-api/{resource}/action',
['uses' => '\Epartment\NovaDependencyContainer\Http\Controllers\ActionController@store']);
app()->bind(
\Laravel\Nova\Http\Controllers\ActionController::class,
\Epartment\NovaDependencyContainer\Http\Controllers\ActionController::class
);
});

Nova::serving(function (ServingNova $event) {
Expand Down

0 comments on commit 58e75c7

Please sign in to comment.