Skip to content

Commit

Permalink
call container instance directly
Browse files Browse the repository at this point in the history
  • Loading branch information
avrahamappel authored May 2, 2019
1 parent e3caee8 commit 5c129ba
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Illuminate/Notifications/Messages/MailMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use Traversable;
use Illuminate\Mail\Markdown;
use Illuminate\Container\Container;
use Illuminate\Contracts\Support\Arrayable;
use Illuminate\Contracts\Support\Renderable;

Expand Down Expand Up @@ -281,6 +282,8 @@ protected function arrayOfAddresses($address)
*/
public function render()
{
return app(Markdown::class)->render($this->markdown, $this->data());
return Container::getInstance()
->make(Markdown::class)
->render($this->markdown, $this->data());
}
}

0 comments on commit 5c129ba

Please sign in to comment.