Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created June 24, 2019 21:40
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/87436a7e2ac28f33ae16d7021e7e477f to your computer and use it in GitHub Desktop.
Save parzibyte/87436a7e2ac28f33ae16d7021e7e477f to your computer and use it in GitHub Desktop.
<?php
namespace App\Mail;
use Illuminate\Mail\Mailable;
class ProbarCorreo extends Mailable
{
public $nombre;
/**
* Create a new message instance.
*
* @return void
*/
public function __construct($nombre)
{
$this->nombre = $nombre;
}
/**
* Build the message.
*
* @return $this
*/
public function build()
{
return $this->view("correos/bienvenida")
->from("tu_correo@gmail.com")
->subject("Bienvenida a mi sitio");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment