Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Scop's avatar
Level 1

livewire live hosting issue

after i host my app to server, my livewire not working. but before i host, its worked perfectly. my app URL is https://abc.com/inventory/

all other normal laravel controller functions are working fine..

only the livewire, notify and storage images not working

I want to share my observations

  1. when I click submit btn, livewire validations not working, and this token pass on URL https://www.abc.com/inventory/?_token=CON2f3z7wqm0UxUwUQNOBCJ5oxejCiGVek58EIiX

  2. when I go inspect my all (storage img, livewire.js) paths are wrong and error also showing path : https://www.abc.com/inventory/?_token=CON2f3z7wqm0UxUwUQNOBCJ5oxejCiGVek58EIiX Error : Failed to load resource: the server responded with a status of 404 (Not Found)

     (all image and js path are same and wth that token random number)
    
  3. in developer mode, when I click that

GET https://www.abc.com/inventory/vendor/livewire/livewire.js?id=38dc8241 net::ERR_ABORTED 404 (Not Found)

when I click, I cant see any preview

steps I did

  1. I try to remove or clear the cache
  2. delete bootstrap/cache/config.php
  3. update composer
  4. publish livewire
  5. php artisan storage:link
  6. PHP extension fileinfo enabled

NOTHING HAPPEND NO WORK

PLEASE GIVE ME A SOLUTION

0 likes
7 replies
jlrdw's avatar

Are you pointing to public as document root?

Scop's avatar
Level 1

@jlrdw

sorry i cant understand.

i think you ask my app location?

abc.com ->public_html->inventory(my app)

jlrdw's avatar

@Scop example:

Documentation reference:

https://laravel.com/docs/11.x/deployment#nginx

If using apache, see their documentation.

Many good past post on correct folder setup on this forum.

Snapey's avatar

because you hosted in a sub-folder instead of the domain root?

Scop's avatar
Level 1

@Snapey

yes sub-folder inventory/

have any solutions?

Scop's avatar
Level 1

I found that error and successfully hosted...!

thanks all for reply my question

Please or to participate in this conversation.