1
0
mirror of https://github.com/freescout-helpdesk/freescout.git synced 2024-11-26 04:12:31 +01:00
freescout/app/Mail/UserInvite.php

37 lines
688 B
PHP
Raw Normal View History

2018-08-31 18:17:38 +02:00
<?php
namespace App\Mail;
use App\Option;
use Illuminate\Mail\Mailable;
class UserInvite extends Mailable
{
/**
* User to whom invitation is sent.
*/
public $user;
/**
* Create a new message instance.
*/
public function __construct($user)
{
$this->user = $user;
}
/**
* Build the message.
*
* @return $this
*/
public function build()
{
$message = $this->subject(__('Welcome to :company_name', ['company_name' => Option::get('company_name')]))
->view('emails/user/user_invite')
->text('emails/user/user_invite_text');
return $message;
}
}