Issues (10)

app/Mail/ExceptionOccurred.php (1 issue)

Severity
1
<?php
2
3
namespace App\Mail;
4
5
use Illuminate\Bus\Queueable;
6
use Illuminate\Mail\Mailable;
7
use Illuminate\Queue\SerializesModels;
8
9
class ExceptionOccurred extends Mailable
10
{
11
    use Queueable, SerializesModels;
0 ignored issues
show
The trait Illuminate\Queue\SerializesModels requires some properties which are not provided by App\Mail\ExceptionOccurred: $id, $class, $relations
Loading history...
12
13
    public $exception;
14
15
    /**
16
     * Create a new message instance.
17
     *
18
     * @param \Exception $exception
19
     */
20
    public function __construct(\Exception $exception)
21
    {
22
        $this->exception = $exception;
23
    }
24
25
    /**
26
     * Build the message.
27
     *
28
     * @return $this
29
     */
30
    public function build()
31
    {
32
        return $this
33
            ->subject('Excepção - benfica.live')
34
            ->markdown('emails.exception-occurred-admin');
35
    }
36
}
37