You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
monitor-doc/app/Mail/DocumentShare.php

39 lines
775 B
PHP

<?php
namespace App\Mail;
use App\Models\Document;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
class DocumentShare extends Mailable
{
use Queueable, SerializesModels;
/**
* Create a new message instance.
*
* @return void
*/
public function __construct(
public Document $doc
) {
}
/**
* Build the message.
*
* @return $this
*/
public function build()
{
return $this->markdown('emails.document.share', [
'no_doc' => $this->doc->no_doc,
'end_date' => $this->doc->end_date->format('d-m-Y'),
'url' => route('docs.show', $this->doc)
]);
}
}