Level 28
In the forge UI when you create a new site you can specify where the laravel entry index.php file will be located. It is "/public" by default but you can change that to "/path/to/src/public" and it should work fine from there.
1 like
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Is there a way to deploy on forge with the laravel app in a subdirectory? My existing projects have laravel contained in a subdirectory call src. I'd like to start using Forge without changing my folder structure and losing my git history.
In the forge UI when you create a new site you can specify where the laravel entry index.php file will be located. It is "/public" by default but you can change that to "/path/to/src/public" and it should work fine from there.
Please or to participate in this conversation.