Level 14
Could you please submit a more specific screenshot or snippet?
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
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.
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.
Please or to participate in this conversation.