I have same problem, not works livewire on vps, error 404. On local works correct but not on vps. I'm desperate
Dec 30, 2019
34
Level 1
Level 1
answer /docs/2.x/installation#publish-assets
you need:
php artisan livewire:publish --assets
Level 2
Livewire HTTP 500 error: sudo chmod -R 777 storage/ sudo chmod -R 777 bootstrap/ Livewire/Laravel HTTP 404 error: sudo vim /etc/apache2/apache2.conf <Directory /var/www/> Options Indexes FollowSymLinks AllowOverride All Require all granted </Directory>
Level 17
I have the same problem!
When I added middleware in Kernel.php -> $middleware => [AccessToPanel::class], (500 internal server error) occured.
When I moved the class to $middlewareAliases it worked fine!
you can use middleware in route group
commands for use:
composer dump-autload
php artisan optimize:clear
npm run dev // restart
it might help for you or others )
Please or to participate in this conversation.