You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
758 B
40 lines
758 B
<?php
|
|
|
|
namespace App\Mail;
|
|
|
|
use App\Models\Product;
|
|
use App\Models\Seckill;
|
|
use Illuminate\Bus\Queueable;
|
|
use Illuminate\Mail\Mailable;
|
|
use Illuminate\Queue\SerializesModels;
|
|
use Illuminate\Contracts\Queue\ShouldQueue;
|
|
|
|
class RemindUserHasSeckillEmail extends Mailable
|
|
{
|
|
use Queueable, SerializesModels;
|
|
|
|
public $seckill;
|
|
public $product;
|
|
|
|
/**
|
|
* Create a new message instance.
|
|
*
|
|
* @param Product $product
|
|
*/
|
|
public function __construct(Seckill $seckill, Product $product)
|
|
{
|
|
$this->product = $product;
|
|
$this->seckill = $seckill;
|
|
}
|
|
|
|
/**
|
|
* Build the message.
|
|
*
|
|
* @return $this
|
|
*/
|
|
public function build()
|
|
{
|
|
return $this->markdown('emails.seckills');
|
|
}
|
|
}
|