Skip to content
This repository has been archived by the owner on Apr 20, 2023. It is now read-only.

Commit

Permalink
Fix DispatchAction (#4)
Browse files Browse the repository at this point in the history
* remove Nova DispatchAction import

* add missing imports on DispatchAction
  • Loading branch information
antoniovazevedo authored May 12, 2020
1 parent 48d3454 commit 1cdc322
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
7 changes: 5 additions & 2 deletions src/DetachedAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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]);
Expand Down
7 changes: 4 additions & 3 deletions src/DispatchAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit 1cdc322

Please sign in to comment.