Livewire not working correctly with Laravel Valet

Just started to use Livewire and love it so far. However, I’ve discovered an issue with my current setup.

I use laravel valet on all my projects and have noticed that the livewire directives (wire:click, wire:model etc…) wont trigger or fire when interacted with.

However, when I use php artisan serve everything works as expected.

I dont mind having to use the serve command as a workaround, but would like to know if anyone has a solution to get livewire to work within the valet environment.

Thanks in advance guys!

Hey, @AtomCoder
The issue is not in livewire itself, I’m using valet in all my projects included livewire projects.

So, you can do the following:

Assuming you have a project called atomCoder

In your .env file


type in your terminal (inside atomCoder project)

valet park
valet link
valet secure

Finally, browse the project atomcoder.test, and you are good to go.

1 Like

That is so weird, I had that setup exactly as you have mentioned and it didnt work. I’m just after trying it again and now its working fine.

Thanks for your help on this.

No problem, I’m glade it works.