Skip to content

Instantly share code, notes, and snippets.

@nonlocalize
Last active August 29, 2015 14:16
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 nonlocalize/a2d1229921b7467e2c20 to your computer and use it in GitHub Desktop.
Save nonlocalize/a2d1229921b7467e2c20 to your computer and use it in GitHub Desktop.
<?php
namespace YourProject\Services\Mailers;
abstract class Mailer
{
public function emailTo($person, $view, $data, $subject)
{
\Mail::send($view, $data, function($message) use($person, $subject)
{
$message->to($person->email)
->subject($subject);
});
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment