Last active
January 18, 2020 05:10
-
-
Save parzibyte/eb5680ffa0b609ee326af68adc4c50de to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Mail; | |
use Illuminate\Bus\Queueable; | |
use Illuminate\Mail\Mailable; | |
use Illuminate\Queue\SerializesModels; | |
class NotificacionAsistenciaAlumno extends Mailable | |
{ | |
use Queueable, SerializesModels; | |
protected $alumno, $fecha; | |
/** | |
* Create a new message instance. | |
* | |
* @return void | |
*/ | |
public function __construct($alumno, $fecha) | |
{ | |
$this->alumno = $alumno; | |
$this->fecha = $fecha; | |
} | |
/** | |
* Build the message. | |
* | |
* @return $this | |
*/ | |
public function build() | |
{ | |
return $this | |
->view('correos.asistencia_alumno') | |
->subject("Notificación de asistencia") | |
->with([ | |
"alumno" => $this->alumno, | |
"fecha" => $this->fecha, | |
]); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment