diff --git a/src/FieldServiceProvider.php b/src/FieldServiceProvider.php index 37864c4..b7b0bb3 100644 --- a/src/FieldServiceProvider.php +++ b/src/FieldServiceProvider.php @@ -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) {