Skip to content
This repository has been archived by the owner on Feb 27, 2024. It is now read-only.

Commit

Permalink
Update ComponentHelper.php
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalbaljet committed Jan 20, 2024
1 parent cdf75e0 commit 960841e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ComponentHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 960841e

Please sign in to comment.