feat: make BroadcastNotification queueable by implementing ShouldQueue and using SerializesModels.
This commit is contained in:
parent
902c4ad8cf
commit
5781595fc6
@ -4,11 +4,14 @@
|
|||||||
|
|
||||||
use Filament\Notifications\Notification as FilamentNotification;
|
use Filament\Notifications\Notification as FilamentNotification;
|
||||||
use Illuminate\Bus\Queueable;
|
use Illuminate\Bus\Queueable;
|
||||||
|
use Illuminate\Contracts\Queue\ShouldQueue;
|
||||||
use Illuminate\Notifications\Notification;
|
use Illuminate\Notifications\Notification;
|
||||||
|
|
||||||
class BroadcastNotification extends Notification
|
use Illuminate\Queue\SerializesModels;
|
||||||
|
|
||||||
|
class BroadcastNotification extends Notification implements ShouldQueue
|
||||||
{
|
{
|
||||||
use Queueable;
|
use Queueable, SerializesModels;
|
||||||
|
|
||||||
public function __construct(
|
public function __construct(
|
||||||
protected array $payload
|
protected array $payload
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user