mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 21:22:58 +01:00
40af77d324
* wip - migration transfer * (WIP) Response refactor: - Catching exceptions at top level - Tests refactor * wip * Wrappign migration validator: - Migration dropped to queue - New validator messages - New exception messages * Fixes for tests
39 lines
803 B
PHP
39 lines
803 B
PHP
<?php
|
|
|
|
namespace App\Mail;
|
|
|
|
use Illuminate\Bus\Queueable;
|
|
use Illuminate\Mail\Mailable;
|
|
use Illuminate\Queue\SerializesModels;
|
|
|
|
class MigrationFailed extends Mailable
|
|
{
|
|
use Queueable, SerializesModels;
|
|
|
|
public $exception;
|
|
public $message;
|
|
|
|
/**
|
|
* Create a new message instance.
|
|
*
|
|
* @param $message
|
|
* @param $exception
|
|
*/
|
|
public function __construct($exception, $message = null)
|
|
{
|
|
$this->exception = $exception;
|
|
$this->message = 'Oops, looks like something went wrong with your migration. Please try again, later.';
|
|
}
|
|
|
|
/**
|
|
* Build the message.
|
|
*
|
|
* @return $this
|
|
*/
|
|
public function build()
|
|
{
|
|
return $this->from('noreply@invoiceninja.com')
|
|
->view('email.migration.failed');
|
|
}
|
|
}
|