There is a subject method in laravel email messages.
All configuration of the postal class is done in the build method. Within this method, you can call various methods, for example, a subject , view and attach to configure the presentation and delivery of email .: https://laravel.com/docs/5.4/mail#writing-mailables
You can achieve this as follows:
public function build()
{
return $this->from('example@example.com')
->subject('Your Subject')
->markdown('emails.orders.shipped');
}
You may need to execute php artisan view:clearafter changing your class.
source
share