Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

aDev9's avatar
Level 1

How to deploy Laravel 11 in subfolder on server

My previous project on Vuejs3 + Laravel 10 worked fine. Now I am using Vuejs3 + Laravel 11 which is pretty fast. But I am stuck in deployment.

I don't know how to bind the app. I have faced the below issue in my app.

Vite manifest not found at: /Users/myname/Desktop/Server/laravel-core/public/build/manifest.json

Previously, I followed the below deployment guide but it does not work now. I have been working on a project using Vuejs3 + Laravel 10 which worked perfectly. However, I have now upgraded to Vuejs3 + Laravel 11 which is much faster, but I'm having issues with deployment. I'm not sure how to bind the app and I've encountered an error message in my app stating, "Vite manifest not found at: /Users/myname/Desktop/Server/laravel-core/public/build/manifest.json". I followed a deployment guide previously, but it's not working anymore.

I would appreciate any assistance you can provide.

0 likes
4 replies
jekinney's avatar

How and to what are you deploying to?

AWS? Google Cloud? Etc.

Any deployment tools like Forge etc.?

aDev9's avatar
Level 1

@jekinney I am currently simulating a server-like environment on my local system, following this doc, before deploying it on Digital Ocean. I cannot able to past the link here. If you want to check docs please add https:// in the starting of the below link.

demos.pixinvent.com/vuexy-vuejs-admin-template/documentation/guide/laravel-integration/laravel-deployment.html

aDev9's avatar
Level 1

I found the solution. I have to bind the app in the bootstrap/app.php file. as below:


use Illuminate\Foundation\Application;
use Illuminate\Foundation\Configuration\Exceptions;
use Illuminate\Foundation\Configuration\Middleware;

$app = Application::configure(basePath: dirname(__DIR__))
  ->withRouting(
    web: __DIR__.'/../routes/web.php',
    commands: __DIR__.'/../routes/console.php',
    health: '/up',
  )
  ->withMiddleware(function (Middleware $middleware) {
    //
  })
  ->withExceptions(function (Exceptions $exceptions) {
    //
  })->create();

app()->usePublicPath(__DIR__.'/../../public_html/');

return $app;

aDev9's avatar
aDev9
OP
Best Answer
Level 1

You can also try to bind the same thing in the index.php file in the public folder.

<?php

use Illuminate\Http\Request;

define('LARAVEL_START', microtime(true));

// Determine if the application is in maintenance mode...
if (file_exists($maintenance = __DIR__.'/../laravel-core/storage/framework/maintenance.php')) {
    require $maintenance;
}

// Register the Composer autoloader...
require __DIR__.'/../laravel-core/vendor/autoload.php';


// Bootstrap Laravel and handle the request...
$app = require_once __DIR__.'/../laravel-core/bootstrap/app.php';

app()->usePublicPath(__DIR__);

$app->handleRequest(Request::capture());

Please or to participate in this conversation.