Closed m-tominaga2022 closed 1 year ago
Hi @m-tominaga2022, it really looks like you're having the same issue as https://github.com/Laravel-Backpack/community-forum/issues/497.
As you can see by the error;
You are checking the route without the prefix, it starts with /livewire/message/...
, and the error says the route exists for the POST method. So indeed the error is the lack of the prefix.
But, on #497, the developer was not using a prefix on the URL, but on the assets. And in your case you're using the prefix on the whole app, and that lead me to https://github.com/livewire/livewire/pull/2662. There you can see Livewire apparently doesn't support subfolder installs. And there's more about it here; https://github.com/livewire/livewire/discussions/5731.
Unfortunately, there's nothing we could do about it on our side, it's a livewire issue, sorry about the trouble, can you move your project out of the subfolder?
Thank you for answering.
I will consider using the project in the root folder.
Hi,
Similar to https://github.com/Laravel-Backpack/community-forum/issues/497
I specified the subfolder name in asset_url of config/livewire.php. I was able to load livewire/livewire.js. However, when I make a modal call (such as create-page-modal), I get 404 not found.
The method exists when you call the URL with GET.
The arisan command also confirms that the livewire method exists.
If it is an environment without local subfolder specification, it works.
Do you have any clues to solve this?
comoser.json