diff --git a/src/Illuminate/View/Compilers/ComponentTagCompiler.php b/src/Illuminate/View/Compilers/ComponentTagCompiler.php index 19a82bdd7046..103edb3ab921 100644 --- a/src/Illuminate/View/Compilers/ComponentTagCompiler.php +++ b/src/Illuminate/View/Compilers/ComponentTagCompiler.php @@ -312,7 +312,7 @@ public function componentClass(string $component) return $guess; } - if (Str::startsWith($component, 'mail::') && $viewFactory->exists($component)) { + if (Str::startsWith($component, 'mail::')) { return $component; }