简体   繁体   中英

Laravel Horizon Empty Dashboard

Laravel Horizon is showing an empty dashboard on a fresh installation. I followed the steps from laravel.com. I also tried to install it on different servers, but same issue persists.

No problem with packages or anything else. But, when I access the dashboard, nothing appears!

And there are no errors in the error logs.

Chrome's console is showing the errors below:

GET http://178.62.204.162/vendor/horizon/css/app.css?id=5ce9973b1bc9f6a46cb2 404 (Not Found) horizon:6

GET http://178.62.204.162/vendor/horizon/js/app.js?id=1cfbba1e25ed49885098 404 (Not Found) horizon:18

而不是运行像http://localhost/horizondemo/public/horizonhttp://localhost/horizondemo/horizon请尝试使用命令运行php artisan serve在这里会有所帮助

Horizion puts files into your public/vendor directory (such as the ones you mentioned, app.css and app.js ), under its own horizon directory. These files must be accessible to the browser, so make sure requests to your web server at /vendor go to public/vendor in your project.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM