Skip to content

Commit

Permalink
inject Filament Notifications to the driver abstract
Browse files Browse the repository at this point in the history
  • Loading branch information
3x1io committed Nov 25, 2024
1 parent 64dd746 commit bebbc6f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/FilamentAlertsServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ public function register(): void
modelId: $user->id,
image: $data['image'] ?? null,
data: $data,
notification: $this
);

return $this;
Expand Down
1 change: 1 addition & 0 deletions src/Services/Drivers/DatabaseDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace TomatoPHP\FilamentAlerts\Services\Drivers;

use Filament\Notifications\Notification;
use TomatoPHP\FilamentAlerts\Jobs\NotifyDatabaseJob;

class DatabaseDriver extends Driver
Expand Down
1 change: 1 addition & 0 deletions src/Services/Drivers/EmailDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace TomatoPHP\FilamentAlerts\Services\Drivers;

use Filament\Notifications\Notification;
use TomatoPHP\FilamentAlerts\Jobs\NotifyEmailJob;

class EmailDriver extends Driver
Expand Down

0 comments on commit bebbc6f

Please sign in to comment.