composer.lock
in your repository root. You can simply copy the composer.lock
file from your Laravel application subdirectory and place it in the root of your monorepo, committing it to source control. This indicates to Laravel Cloud that your monorepo contains a Laravel application. This composer.lock
file does not need to be kept up to date.
Next, customize your environment’s build script in Laravel Cloud to move your Laravel application subdirectory (e.g., laravel_app
) into the root directory before running composer install
and the rest of your build commands:
laravel_app
with the name of your Laravel app directory that you want to deploy.