for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Resohead\LaravelTestMail;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
class TestMailable extends Mailable
{
use Queueable, SerializesModels;
public $recipient;
/**
* Create a new message instance.
*
* @return void
@return
Adding a @return annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.
Please refer to the PHP core documentation on constructors.
*/
public function __construct(String $recipient)
$this->recipient = $recipient;
}
* Build the message.
* @return $this
public function build()
return $this->subject('Test email from '. config('app.name'))
->to($this->recipient)
->markdown('laravel-test-mail::emails.test');
Adding a
@return
annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.