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-05 21:30:32 +01:00
|
|
|
public $content;
|
2020-01-27 21:56:48 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Create a new message instance.
|
|
|
|
*
|
2020-03-05 21:30:32 +01:00
|
|
|
* @param $content
|
2020-01-27 21:56:48 +01:00
|
|
|
* @param $exception
|
|
|
|
*/
|
2020-03-05 21:30:32 +01:00
|
|
|
public function __construct($exception, $content = null)
|
2020-01-27 21:56:48 +01:00
|
|
|
{
|
|
|
|
$this->exception = $exception;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 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'))
|
2020-12-03 21:41:36 +01:00
|
|
|
|
2020-12-02 04:08:35 +01:00
|
|
|
->view('email.migration.failed');
|
2020-01-27 21:56:48 +01:00
|
|
|
}
|
|
|
|
}
|