Last active
August 29, 2015 14:16
-
-
Save nonlocalize/4bd23affd589c0555519 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 YourProject\Services\Mailers; | |
class UserMailer extends Mailer | |
{ | |
protected $user; | |
function __construct() | |
{ | |
$this->user = \Auth::user(); | |
} | |
public function subscribed() | |
{ | |
$subject = 'Welcome to the site!'; | |
$view = 'emails.user.subscribed'; | |
$data = ['enter view data here']; | |
$this->emailTo($this->user, $view, $data, $subject); | |
} | |
public function upgraded() | |
{ | |
$subject = 'Membership upgraded!'; | |
$view = 'emails.user.upgraded'; | |
$data = ['enter view data here']; | |
$this->emailTo($this->user, $view, $data, $subject); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment