2020-01-27 21:56:48 +01:00
|
|
|
<?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;
|
2020-03-03 23:44:42 +01:00
|
|
|
public $message;
|
2020-01-27 21:56:48 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Create a new message instance.
|
|
|
|
*
|
2020-03-03 23:44:42 +01:00
|
|
|
* @param $message
|
2020-01-27 21:56:48 +01:00
|
|
|
* @param $exception
|
|
|
|
*/
|
2020-03-03 23:44:42 +01:00
|
|
|
public function __construct($exception, $message = null)
|
2020-01-27 21:56:48 +01:00
|
|
|
{
|
|
|
|
$this->exception = $exception;
|
2020-03-03 23:44:42 +01:00
|
|
|
$this->message = 'Oops, looks like something went wrong with your migration. Please try again, later.';
|
2020-01-27 21:56:48 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Build the message.
|
|
|
|
*
|
|
|
|
* @return $this
|
|
|
|
*/
|
|
|
|
public function build()
|
|
|
|
{
|
|
|
|
return $this->from('noreply@invoiceninja.com')
|
|
|
|
->view('email.migration.failed');
|
|
|
|
}
|
|
|
|
}
|