queue notify

This commit is contained in:
HolgerHatGarKeineNode
2023-02-25 12:06:40 +01:00
parent 5ccec0bbd1
commit 3f5881eff8

View File

@@ -3,16 +3,16 @@
namespace App\Notifications; namespace App\Notifications;
use Illuminate\Bus\Queueable; use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Notifications\Messages\MailMessage; use Illuminate\Notifications\Messages\MailMessage;
use Illuminate\Notifications\Notification; use Illuminate\Notifications\Notification;
class ModelCreatedNotification extends Notification class ModelCreatedNotification extends Notification implements ShouldQueue
{ {
use Queueable; use Queueable;
/** /**
* Create a new notification instance. * Create a new notification instance.
*
* @return void * @return void
*/ */
public function __construct(public $model, public string $resource) public function __construct(public $model, public string $resource)