'.$php); } catch (Exception $e) { while (ob_get_level() > $obLevel) { ob_end_clean(); } throw $e; } catch (Throwable $e) { while (ob_get_level() > $obLevel) { ob_end_clean(); } throw new \Exception($e->getMessage()); } return ob_get_clean(); } /* * Returns the base template we will be using. */ public function getTemplate(string $template = 'plain') { return File::get(resource_path('views/email/template/'.$template.'.blade.php')); } public function getTemplatePath(string $template = 'plain') { return 'email.template.'.$template; } }