skip to Main Content

The /horizon route from the laravel/horizon package works, but the css and javascript are not loaded.

this is what the road /horizon looks like:

enter image description here

However, I just installed the package and followed the laravel documentation installation

  • composer require laravel/horizon
  • php artisan horizon:install
  • php artisan optimize
  • npm run dev ( and I tried npm run build,…)

this is my config :

  • laravel-mix 4.0.7
  • laravel/horizon 5.14
  • laravel 8.0

Can you help me ?

2

Answers


  1. Chosen as BEST ANSWER

    Resolved with variable environment :

    ASSET_URL=/.
    

  2. Make sure assets are included in your application. Try running the following command.

    php artisan vendor:publish --tag=horizon-assets && npm run dev
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search