for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Mail;
use Illuminate\Bus\Queueable;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
class customMail extends Mailable
{
use Queueable, SerializesModels;
protected $body;
public $subject;
/**
* Create a new message instance.
*
* @return void
*/
public function __construct($subject, $body)
$this->subject = $subject;
$this->body = $body;
}
* Build the message.
* @return $this
public function build()
$body = $this->body;
$this->subject($this->subject);
return $this->markdown('emails.customMail', compact("body"));