diff --git a/src/DetachedAction.php b/src/DetachedAction.php index 3947b22..1eb2da2 100644 --- a/src/DetachedAction.php +++ b/src/DetachedAction.php @@ -3,7 +3,6 @@ namespace Brightspot\Nova\Tools\DetachedActions; use Laravel\Nova\Actions\Action; -use Laravel\Nova\Actions\DispatchAction; use Laravel\Nova\Actions\ActionMethod; use Laravel\Nova\Exceptions\MissingActionHandlerException; use Laravel\Nova\Nova; @@ -53,7 +52,11 @@ public function handleRequest(ActionRequest $request) $fields = $request->resolveFields(); $results = DispatchAction::forModels( - $request, $this, $method, collect([]), $fields + $request, + $this, + $method, + collect([]), + $fields ); return $this->handleResult($fields, [$results]); diff --git a/src/DispatchAction.php b/src/DispatchAction.php index 8fdd156..e3104d5 100644 --- a/src/DispatchAction.php +++ b/src/DispatchAction.php @@ -2,12 +2,13 @@ namespace Brightspot\Nova\Tools\DetachedActions; -use Illuminate\Contracts\Queue\ShouldQueue; +use Laravel\Nova\Nova; +use Laravel\Nova\Actions\Action; use Illuminate\Support\Collection; -use Illuminate\Support\Facades\Queue; +use Laravel\Nova\Actions\Transaction; use Laravel\Nova\Fields\ActionFields; +use Illuminate\Contracts\Queue\ShouldQueue; use Laravel\Nova\Http\Requests\ActionRequest; -use Laravel\Nova\Nova; class DispatchAction extends \Laravel\Nova\Actions\DispatchAction {