How to Set Subject In Laravel Mail ?

Dec 10, 2019



Hi Guys,

In this tutorial,I will learn you how to set subject send email using markdown mailable class in laravel. you can simply set the subject in laravel mail.

Click to Mailable class Example


you can set build() method in mailable class example.



* Build the message.


* @return $this


public function build()


return $this->subject('Your Subject')


->attach(public_path('pdf'), [

'as' => 'sample.pdf',

'mime' => 'application/pdf',



It will help you....

#Laravel 6