<?php
namespace App\Mail;
use App\ReplyPost;
use Illuminate\Bus\Queueable;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
class ReplyCreatedOwnerPost extends Mailable
{
use Queueable, SerializesModels;
public $reply;
/**
* Create a new message instance.
*
* @param $reply
*/
public function __construct(ReplyPost $reply)
{
$this->reply = $reply;
}
/**
* Build the message.
*
* @return $this
*/
public function build()
{
return $this->from(env('MAIL_FROM_ADDRESS'))
->markdown('emails.reply-post-created');
}
}
@component('mail::message')
# Появился новый комментарий к твоему объявлению
@component('mail::button', ['url' => route('post.show', ['posts' => $reply->post->id])])
Перейти к объявлению
@endcomponent
Thanks,<br>
{{ config('app.name') }}
@endcomponent