shareit/app/Mail/UserWaiting.php
Bruno Fontes 7117085512 fix(email): changed command getFromJson
Laravel 6.0 update had changed the command from Lang::getFromJson to
Lang::get. Updated accordingly
2021-05-20 21:04:35 -03:00

48 lines
1004 B
PHP

<?php
namespace App\Mail;
use \App\Item;
use Illuminate\Bus\Queueable;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
use Lang;
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(
Lang::get(
':waitinguser wants to use :itemname',
[
'waitinguser' => $this->waitingUser,
'itemname' => $this->item->name
]
)
)->markdown('emails.userWaiting');
}
}