mirror of
https://github.com/filamentphp/filament.git
synced 2026-09-24 15:42:09 +08:00
Resolve instance from container
This commit is contained in:
@@ -205,7 +205,7 @@ class Notification extends ViewComponent implements Arrayable, HasEmbeddedView
|
||||
$data = $this->toArray();
|
||||
$data['format'] = 'filament';
|
||||
|
||||
return new BroadcastNotification($data);
|
||||
return app(BroadcastNotification::class, ['data' => $data]);
|
||||
}
|
||||
|
||||
public function toDatabase(): DatabaseNotification
|
||||
|
||||
Reference in New Issue
Block a user