Created
June 25, 2013 13:36
-
-
Save fedeisas/5858491 to your computer and use it in GitHub Desktop.
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 namespace MyApp; | |
class Mailer extends \Illuminate\Mail\Mailer { | |
/** | |
* Render the given view. | |
* | |
* @param string $view | |
* @param array $data | |
* @return \Illuminate\View\View | |
*/ | |
protected function getView($view, $data) | |
{ | |
$view = $this->views->make($view, $data)->render(); | |
// Cleanup $view to inline the css and then... | |
return $view; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment