Skip to content

Commit

Permalink
Merge pull request #95 from mabdullahsari/patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
KABBOUCHI authored Oct 21, 2021
2 parents 199a078 + bda0769 commit 5e1163e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Http/Controllers/ImpersonateController.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use Illuminate\Routing\Controller;
use Illuminate\Support\Str;
use KABBOUCHI\NovaImpersonate\Contracts\Impersonate;
use Laravel\Nova\Actions\ActionEvent;
use Laravel\Nova\Actions\ActionResource;

class ImpersonateController extends Controller
{
Expand Down Expand Up @@ -75,7 +75,7 @@ public function leave()

protected function recordAction($userId, $user_to_impersonate, $actionName)
{
ActionEvent::create([
ActionResource::newModel()->create([
'batch_id' => (string) Str::orderedUuid(),
'user_id' => $userId,
'name' => $actionName,
Expand Down

0 comments on commit 5e1163e

Please sign in to comment.