How To Deploy Filament in subdirectory

I have a Laravel 10 project with Filament 3 that runs normally in development. However, when I tried to deploy it to a subdirectory (mydomaindotcom/project), I encountered issues - the URLs cannot be accessed and always redirect to mydomaindotcom. Could you help me with this?
4 Replies
LeandroFerreira
LeandroFerreira2mo ago
Why not a subdomain?
rullyka
rullykaOP2mo ago
because the user I use is not super admin level, some features are limited including creating subdomains
LeandroFerreira
LeandroFerreira2mo ago
I don't think subdirectores is the best approach.. subdomains would work better
tg
tg2mo ago
@rullyka https://laravel-news.com/subfolder-install => should apply to Filament as well, I don't think it does special routing outside the regular Laravel router.
Laravel News
Installing Laravel in a Subfolder? Hide your .env file. - Laravel News
If you are new to Laravel you might not be familiar with its directory structure and the reasons why it’s setup the way it is. If you look at the main repository it’s setup like this, and the documentation covers what each of these folders handles. What is important here is the “public” folder. That … Continue reading “Installing Laravel in a Su...

Did you find this page helpful?