我正在尝试在我的 Laravel 7 应用程序中使用 Livewire 1.013。我刚刚在我的包中安装了 livewire。我正在使用 xampp apache 服务器。所以,我的项目 URL 就像http://localhost/Projects/testproject/public。
当我检查包含@livewireStyles
and的页面@livewireScripts
时,我收到了net::ERR_ABORTED 404 (Not Found)
错误。我做了php artisan vendor:publish --tag=livewire:config
并添加@php artisan vendor:publish --force --tag=livewire:assets --ansi
到 composer.json 文件中。我执行的composer dump-autoload
。错误仍然存在。谁能帮我解决这个问题?
如果我用它的 URL 做 PHP artisan ser 而不是自定义项目 URL,http://127.0.0.1:8000/
它对我来说很好。但是,就我而言,我有不同的项目,我必须使用 xampp apcahe。
你能帮我解决这个问题吗?
提前致谢 !马努