gdiasdasilva /
benfica-live
| 1 | <?php |
||
| 2 | |||
| 3 | namespace App\Mail; |
||
| 4 | |||
| 5 | use Illuminate\Bus\Queueable; |
||
| 6 | use Illuminate\Mail\Mailable; |
||
| 7 | use Illuminate\Queue\SerializesModels; |
||
| 8 | use Illuminate\Contracts\Queue\ShouldQueue; |
||
| 9 | |||
| 10 | use App\Spot; |
||
| 11 | |||
| 12 | class SpotSubmitted extends Mailable |
||
| 13 | { |
||
| 14 | use Queueable, SerializesModels; |
||
|
0 ignored issues
–
show
introduced
by
Loading history...
|
|||
| 15 | public $spotSubmitted; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Create a new message instance. |
||
| 19 | * |
||
| 20 | * @return void |
||
| 21 | */ |
||
| 22 | public function __construct(Spot $spotSubmitted) |
||
| 23 | { |
||
| 24 | $this->spotSubmitted = $spotSubmitted; |
||
| 25 | } |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Build the message. |
||
| 29 | * |
||
| 30 | * @return $this |
||
| 31 | */ |
||
| 32 | public function build() |
||
| 33 | { |
||
| 34 | return $this |
||
| 35 | ->from('[email protected]', 'No Reply') |
||
| 36 | ->subject('Nova submissão de Spot - benfica.live') |
||
| 37 | ->markdown('emails.spot-submitted-admin'); |
||
| 38 | } |
||
| 39 | } |
||
| 40 |