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;
class CannotRenderTemplateMailable extends Exception
{
public static function layoutDoesNotContainABodyPlaceHolder(TemplateMailable $templateMailable)
$mailableClass = class_basename($templateMailable);
return new static("The layout for mailable `{$mailableClass}` does not contain a `{{{ body }}}` placeholder");
}