Last active
April 10, 2020 16:18
-
-
Save connor11528/e67eb86935035f9b0ebe0d65acb8e6f2 to your computer and use it in GitHub Desktop.
the approve candidate mailable for sending emails in Laravel 5
This file contains hidden or 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 | |
//... | |
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 👍'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Full tutorial here: https://employbl.com/blog/user-approval-laravel-artisan-welcome-email