mirror of
https://github.com/coollabsio/coolify.git
synced 2026-08-28 18:14:35 -05:00
Add a high-priority job with retries and coverage confirming cloud registrations dispatch it.
30 lines
495 B
PHP
30 lines
495 B
PHP
<?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();
|
|
}
|
|
}
|