From ef7403c317a4e29c0486bffeb90845c27d462875 Mon Sep 17 00:00:00 2001 From: Fady Mondy Date: Mon, 25 Nov 2024 05:32:05 +0200 Subject: [PATCH] inject image and data to the request --- composer.json | 2 +- src/FilamentAlertsServiceProvider.php | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index a2cd3d3..407624e 100644 --- a/composer.json +++ b/composer.json @@ -75,5 +75,5 @@ "phpstan/phpstan-deprecation-rules": "^1.2", "phpstan/phpstan-phpunit": "^1.4" }, - "version": "2.2.1" + "version": "2.2.2" } diff --git a/src/FilamentAlertsServiceProvider.php b/src/FilamentAlertsServiceProvider.php index 5ffb6f7..a85773e 100644 --- a/src/FilamentAlertsServiceProvider.php +++ b/src/FilamentAlertsServiceProvider.php @@ -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;