for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace FlyingLuscas\BugNotifier\Mail;
use Illuminate\Bus\Queueable;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
use Illuminate\Contracts\Queue\ShouldQueue;
class BugMail extends Mailable implements ShouldQueue
{
use Queueable, SerializesModels;
public $view;
public $subject;
public $body;
/**
* Create a new message instance.
*
* @param Illuminate\View\View $view
* @param string $subject
* @param string $body
* @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($view, $subject, $body)
$this->view = $view;
$this->subject = $subject;
$this->body = $body;
}
* Build the message.
* @return $this
public function build()
return $this->view($this->view)
->subject($this->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.