mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-11 05:32:39 +01:00
41 lines
915 B
PHP
41 lines
915 B
PHP
<?php
|
|
|
|
namespace App\Mail;
|
|
|
|
use Illuminate\Bus\Queueable;
|
|
use Illuminate\Mail\Mailable;
|
|
use Illuminate\Queue\SerializesModels;
|
|
|
|
class MigrationFailed extends Mailable
|
|
{
|
|
|
|
public $exception;
|
|
public $content;
|
|
public $settings;
|
|
public $company;
|
|
/**
|
|
* Create a new message instance.
|
|
*
|
|
* @param $content
|
|
* @param $exception
|
|
*/
|
|
public function __construct($exception, $company, $content = null)
|
|
{
|
|
$this->exception = $exception;
|
|
$this->content = $content;
|
|
$this->settings = $company->settings;
|
|
$this->company = $company;
|
|
}
|
|
|
|
/**
|
|
* Build the message.
|
|
*
|
|
* @return $this
|
|
*/
|
|
public function build()
|
|
{
|
|
return $this->from(config('mail.from.address'), config('mail.from.name'))
|
|
->view('email.migration.failed', ['settings' => $this->settings, 'company' => $this->company]);
|
|
}
|
|
}
|