1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-17 00:22:51 +01:00
invoiceninja/app/Mail/MigrationFailed.php

41 lines
915 B
PHP
Raw Normal View History

<?php
namespace App\Mail;
use Illuminate\Bus\Queueable;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
class MigrationFailed extends Mailable
{
public $exception;
public $content;
2021-05-22 05:20:40 +02:00
public $settings;
2021-05-26 05:17:22 +02:00
public $company;
/**
* Create a new message instance.
*
* @param $content
* @param $exception
*/
2021-05-26 05:17:22 +02:00
public function __construct($exception, $company, $content = null)
{
$this->exception = $exception;
$this->content = $content;
2021-05-26 05:17:22 +02:00
$this->settings = $company->settings;
$this->company = $company;
}
/**
* Build the message.
*
* @return $this
*/
public function build()
{
2020-12-03 12:00:34 +01:00
return $this->from(config('mail.from.address'), config('mail.from.name'))
2021-05-26 05:17:22 +02:00
->view('email.migration.failed', ['settings' => $this->settings, 'company' => $this->company]);
}
}