-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathCommentRemind.php
More file actions
41 lines (36 loc) · 878 Bytes
/
CommentRemind.php
File metadata and controls
41 lines (36 loc) · 878 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php
namespace App\Mail;
use Illuminate\Bus\Queueable;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
use Illuminate\Contracts\Queue\ShouldQueue;
class CommentRemind extends Mailable
{
use Queueable, SerializesModels;
/**
* Create a new message instance.
*
* @return void
*/
public function __construct($title, $comment, $url)
{
$this->subject('Re:' . $title);
$this->title = $title;
$this->comment = $comment;
$this->url = $url;
}
/**
* Build the message.
*
* @return $this
*/
public function build()
{
return $this->view(env('BLOG_THEME') . '.emails.comments.remind')
->with([
'title' => $this->title,
'comment' => $this->comment,
'url' => $this->url,
]);
}
}