mirror of
https://github.com/brunofontes/shareit.git
synced 2024-11-27 21:31:27 +00:00
Bruno Fontes
63ef369e16
Now the main page, item page and e-mails are translated into Brazilian Portuguese
37 lines
713 B
PHP
37 lines
713 B
PHP
<?php
|
|
|
|
namespace App\Mail;
|
|
|
|
use \Lang;
|
|
use \App\User;
|
|
use Illuminate\Bus\Queueable;
|
|
use Illuminate\Mail\Mailable;
|
|
use Illuminate\Queue\SerializesModels;
|
|
use Illuminate\Contracts\Queue\ShouldQueue;
|
|
|
|
class Welcome extends Mailable
|
|
{
|
|
public $user; //Keep this public to be accessed directly from the view.
|
|
use Queueable, SerializesModels;
|
|
|
|
/**
|
|
* Create a new message instance.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function __construct(User $user)
|
|
{
|
|
$this->user = $user;
|
|
}
|
|
|
|
/**
|
|
* Build the message.
|
|
*
|
|
* @return $this
|
|
*/
|
|
public function build()
|
|
{
|
|
return $this->subject(Lang::getFromJson('Welcome'))->markdown('emails.welcome');
|
|
}
|
|
}
|