Livewire is not working without PHP artisan serve

 

First of all you should publish livewire configurational file with next command:

php artisan livewire:publish --config


Then in config folder you would be able to find file htdocs\YourProjectName\config\livewire.php where you would be able to edit the next string:

'asset_url'  => null,

to

'asset_url'  => 'http://localhost/YourProjectName/public',
 

And it should work after that. At least it worked in my case.

Docs: https://laravel-livewire.com/docs/2.x/installation

But in docs that string is called:

'asset_base_url' => '/assets'

instead of

'asset_url'  => 'http://localhost/YourProjectName/public',

But in the end it doesn't matter;)

 

https://stackoverflow.com/questions/65370458/livewire-is-not-working-without-php-artisan-serve

https://github.com/livewire/livewire/issues/84