File: D:/HostingSpaces/SBogers10/netwerkbrabant.komma.pro/app/Mail/WeFactErrorMail.php
<?php
namespace App\Mail;
use Illuminate\Bus\Queueable;
use Illuminate\Http\Request;
use Illuminate\Queue\SerializesModels;
class WeFactErrorMail extends ConfigurableMailable
{
use Queueable, SerializesModels;
/**@var array $weFactResponse */
private $weFactResponse;
/**
* Create a new message instance that represents a mail containing information about an exception
*
* @param array $weFactResponse
*/
public function __construct(array $weFactResponse)
{
$this->weFactResponse = $weFactResponse;
parent::__construct();
}
/**
* Build the message.
*
* @return $this
*/
public function build()
{
//Build a subject
$subject = 'WeFact error mail';
//Set from and to
$this->from(\Config::get('mail.from.address'), \Config::get('mail.from.name'));
$this->to(\Config::get('mail.admin.address'))->subject($subject);
// Return a view for the message
return $this->view('emails.weFactError', $this->weFactResponse);
}
}