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 bebbc6f commit 109bbab
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ you can add a custom driver follow up `Driver` abstract class like this

namespace TomatoPHP\FilamentAlerts\Services\Drivers;

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

class DatabaseDriver extends Driver
Expand All @@ -207,6 +208,7 @@ class DatabaseDriver extends Driver
?string $action = 'system',
?array $data = [],
?int $template_id = null,
?Notification $notification = null
): void {
if ($modelId) {
dispatch(new NotifyDatabaseJob([
Expand Down

0 comments on commit 109bbab

Please sign in to comment.