Skip to content

Commit 5e1163e

Browse files
authored
Merge pull request #95 from mabdullahsari/patch-1
2 parents 199a078 + bda0769 commit 5e1163e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Http/Controllers/ImpersonateController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use Illuminate\Routing\Controller;
77
use Illuminate\Support\Str;
88
use KABBOUCHI\NovaImpersonate\Contracts\Impersonate;
9-
use Laravel\Nova\Actions\ActionEvent;
9+
use Laravel\Nova\Actions\ActionResource;
1010

1111
class ImpersonateController extends Controller
1212
{
@@ -75,7 +75,7 @@ public function leave()
7575

7676
protected function recordAction($userId, $user_to_impersonate, $actionName)
7777
{
78-
ActionEvent::create([
78+
ActionResource::newModel()->create([
7979
'batch_id' => (string) Str::orderedUuid(),
8080
'user_id' => $userId,
8181
'name' => $actionName,

0 commit comments

Comments
 (0)