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;
use Illuminate\Contracts\Queue\ShouldQueue;
class customMail extends Mailable
{
use Queueable, SerializesModels;
public $subject, $body;
/**
* 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()
return $this->markdown('emails.customMail', [
'subject' => $this->subject,
'body'=> $this->body
]);