Files
exchange-2.0/app/Classes/Jobs/SendUserPaymentProofUploadedEmail.php
T
2023-06-03 15:48:33 +08:00

43 lines
1005 B
PHP

<?php
namespace App\Classes\Jobs;
use App\Classes\Notifications\PaymentProofUploadedEmail;
use App\Models\Booking;
use App\Models\User;
use App\Models\UserEmailVerification;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;
class SendUserPaymentProofUploadedEmail implements ShouldQueue
{
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
/** @var User */
private $user;
/** @var Booking */
private $booking;
/**
* SendUserVerificationEmail constructor.
* @param User $user
* @param UserEmailVerification $attempt
*/
public function __construct(User $user, Booking $booking)
{
$this->user = $user;
$this->booking = $booking;
}
public function handle()
{
$this->user->notify(new PaymentProofUploadedEmail($this->user, $this->booking));
}
}