for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Spatie\MailTemplates\Exceptions;
use Exception;
use Spatie\MailTemplates\TemplateMailable;
use Spatie\MailTemplates\Models\MailTemplate;
class CannotRenderTemplateMailable extends Exception
{
public static function layoutDoesNotContainABodyPlaceHolder(TemplateMailable $templateMailable, MailTemplate $mailTemplate, string $layoutHtml)
$mailTemplate
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
$layoutHtml
$mailableClass = class_basename($templateMailable);
return new static("The layout for mailable `{$mailableClass}` does not contain a `{{{ body }}}` placeholder");
}
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.