for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Robertgarrigos\Contact\Mail;
use Illuminate\Bus\Queueable;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
class MessageSent extends Mailable
{
use Queueable, SerializesModels;
public $name;
public $email;
public $text;
/**
* 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 $name, string $email, string $text)
$this->name = $name;
$this->email = $email;
$this->text = $text;
}
* Build the message.
* @return $this
public function build()
return $this->from($this->email, $this->name)
->markdown('contact::email.sent')
->subject(__('contact.subject'));
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.