Skip to content

Instantly share code, notes, and snippets.

@connor11528
Last active April 10, 2020 16:18
Show Gist options
  • Save connor11528/e67eb86935035f9b0ebe0d65acb8e6f2 to your computer and use it in GitHub Desktop.
Save connor11528/e67eb86935035f9b0ebe0d65acb8e6f2 to your computer and use it in GitHub Desktop.
the approve candidate mailable for sending emails in Laravel 5
<?php
//...
class ApproveCandidate extends Mailable
{
use Queueable, SerializesModels;
public $user;
/**
* Create a new message instance.
*
* @return void
*/
public function __construct(User $user)
{
$this->user = $user;
}
/**
* Build the message.
*
* @return $this
*/
public function build()
{
return $this->markdown('candidates.mail.approved')
->subject('Approved to join Employbl 👍');
}
}
@connor11528
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment