Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

xtfer's avatar
Level 1

Can't load components

I'm using Laravel Spark with Laravel 8.10. Whenever I try to use a blade component in /views/components I get InvalidArgumentException Unable to locate a class or view for component.

If anyone has any ideas on how to resolve this I'd appreciate it.

0 likes
2 replies
srasch's avatar

Could you please submit a more specific screenshot or snippet?

xtfer's avatar
xtfer
OP
Best Answer
Level 1

Thanks for your response @srasch, however the issue was that I was calling the components with:

<x-component.name />

not

<x-name />

I was fooled by the Laravel plugin for PHPStorm autocompleting the former.

1 like

Please or to participate in this conversation.