mirror of
https://github.com/brunofontes/shareit.git
synced 2024-11-28 05:41:27 +00:00
41 lines
863 B
PHP
41 lines
863 B
PHP
|
<?php
|
||
|
|
||
|
namespace App\Mail;
|
||
|
|
||
|
use \App\Item;
|
||
|
use Illuminate\Bus\Queueable;
|
||
|
use Illuminate\Mail\Mailable;
|
||
|
use Illuminate\Queue\SerializesModels;
|
||
|
use Illuminate\Contracts\Queue\ShouldQueue;
|
||
|
|
||
|
class UserWaiting extends Mailable
|
||
|
{
|
||
|
public $item;
|
||
|
public $waitingUser;
|
||
|
public $userWithItem;
|
||
|
use Queueable, SerializesModels;
|
||
|
|
||
|
/**
|
||
|
* Create a new message instance.
|
||
|
*
|
||
|
* @return void
|
||
|
*/
|
||
|
public function __construct($waitingUser, $userWithItem, Item $item)
|
||
|
{
|
||
|
$this->item = $item;
|
||
|
$this->waitingUser = $waitingUser;
|
||
|
$this->userWithItem = $userWithItem;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Build the message.
|
||
|
*
|
||
|
* @return $this
|
||
|
*/
|
||
|
public function build()
|
||
|
{
|
||
|
return $this->subject($this->waitingUser . ' wants to use ' . $this->item->name)
|
||
|
->markdown('emails.userWaiting');
|
||
|
}
|
||
|
}
|