Filamentphp in shared hosting
i have problem when upload my project in shared hosting i not have sub domain to add the request to public dir
and when try to access the project by write the public in url this error message show
The POST method is not supported for route admin/login
i used filament V3 with laravel 10 and php 8.2.26
Solution:Jump to solution
@charlie @igorclauss
now it work after i publish the livewire assets
and add this code in route provider
Livewire::setUpdateRoute(function ($handle) {...
6 Replies
you need to make your domain (or subdomain) point to the public dir
it's the most basic feature for most shared hostings
i cannot point the domain to public dir because ||i have more app in hosting
For me it looks more like you haven't published livewire assets. Check your browser console
make a subdomain?
i dont have permission to create sub domain in my hosting 😢
i try publish the livewire assets
this error appear
The requested URL was not found on this server.
Apache/2.4.59 (Win64) OpenSSL/3.1.5 PHP/8.2.18 mod_fcgid/2.3.10-dev Server at localhost Port 80
Solution
@charlie @igorclauss
now it work after i publish the livewire assets
and add this code in route provider
Livewire::setUpdateRoute(function ($handle) {
return Route::post('/test-app/public/livewire/update', $handle)
->middleware('web');
});