08 2024
This commit is contained in:
parent
04d677d37a
commit
bfa3bb1df4
1191 changed files with 637397 additions and 10619 deletions
38
app/Mail/Exception.php
Normal file
38
app/Mail/Exception.php
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
<?php
|
||||
namespace App\Mail;
|
||||
|
||||
use Illuminate\Bus\Queueable;
|
||||
use Illuminate\Mail\Mailable;
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
class Exception extends Mailable
|
||||
{
|
||||
use Queueable, SerializesModels;
|
||||
public $content;
|
||||
public $css;
|
||||
/**
|
||||
* Create a new message instance.
|
||||
*
|
||||
* @param $data
|
||||
*/
|
||||
public function __construct($css, $content)
|
||||
{
|
||||
$this->css = $css;
|
||||
$this->content = $content;
|
||||
|
||||
}
|
||||
/**
|
||||
* Build the message.
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function build()
|
||||
{
|
||||
return $this->view('emails.exception')
|
||||
->subject('mivita Exception Logged!')
|
||||
->with([
|
||||
'content' => $this->content,
|
||||
'css' => $this->css,
|
||||
|
||||
]);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue