coolify/app/Jobs/SendVerificationEmailJob.php

30 lines
495 B
PHP
Raw Normal View History

<?php
namespace App\Jobs;
use App\Models\User;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Queue\Queueable;
class SendVerificationEmailJob implements ShouldQueue
{
use Queueable;
public $tries = 3;
public $backoff = 10;
public function __construct(public User $user)
{
$this->onQueue('high');
}
/**
* Execute the job.
*/
public function handle(): void
{
$this->user->sendVerificationEmail();
}
}