diff --git a/src/ComponentHelper.php b/src/ComponentHelper.php index dedfdf3..8348451 100644 --- a/src/ComponentHelper.php +++ b/src/ComponentHelper.php @@ -137,6 +137,10 @@ public function getClass(Component|string $component): ?string return $component::class; } + if (! Str::contains($component, 'components.') && ! Str::contains($component, '/components/')) { + return null; + } + $class = rescue( callback: fn () => $this->componentTagCompiler->componentClass($this->getAlias($component)), report: false,