Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Last active January 18, 2020 05:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/eb5680ffa0b609ee326af68adc4c50de to your computer and use it in GitHub Desktop.
Save parzibyte/eb5680ffa0b609ee326af68adc4c50de to your computer and use it in GitHub Desktop.
<?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