Open mariusberget92 opened 1 year ago
In Laravel 9, there's no build
method anymore. It was replaced by content
method.
For Laravel 9, use this:
public function content()
{
return new Content(
view: $this->mjml('view.name')->buildMjmlView()['html'],
);
}
In Laravel 9, there's no
build
method anymore. It was replaced bycontent
method. For Laravel 9, use this:public function content() { return new Content( view: $this->mjml('view.name')->buildMjmlView()['html'], ); }
Thank you! :)
Hi. I am a bit confused as to what to do when I come to step 4: In the build method, use: $this->mjml('view.name');
When I generated the mail class, I cannot see any build method anywhere. When I try to add the build method, VSCode suggests a
buildViewData
method instead. I added the whole generated mail class below. Sorry if I have misunderstood something.