Skip to content

Commit

Permalink
inject image and data to the request
Browse files Browse the repository at this point in the history
  • Loading branch information
3x1io committed Nov 25, 2024
1 parent 6241447 commit ef7403c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,5 +75,5 @@
"phpstan/phpstan-deprecation-rules": "^1.2",
"phpstan/phpstan-phpunit": "^1.4"
},
"version": "2.2.1"
"version": "2.2.2"
}
4 changes: 3 additions & 1 deletion src/FilamentAlertsServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ public function register(): void
type: $this->getStatus(),
url: count($this->getActions()) ? $this->getActions()[0]->getUrl() ?? null : null,
model: get_class($user),
modelId: $user->id
modelId: $user->id,
image: $data['image'] ?? null,
data: $data,
);

return $this;
Expand Down

0 comments on commit ef7403c

Please sign in to comment.