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

BrianHollenbach's avatar

Laravel 11 deployment on Forge

Has anyone tried to deploy their Laravel 11 application on forge? The thing I am worried about is that we are now using sqlite but it does not look like Laravel Forge is supporting this as of yet.

0 likes
2 replies
ryangurnick's avatar
Level 22

I have not yet, but I can try if you want. After watching these videos, it appears that you would just provide an environment variable as usual, it just defaults to using sqlite when no other option is provided.

Since deploying to servers is inherently different than local development, using sqlite could work but that would need to be an analysis you would want to run through.

I think the idea with the changes is that by default when you first start developing an app, starting off with sqlite makes sense to reduce setup needs, but longer term other services might still be needed (and are configurable in a similar way as before).

Polar_Bear's avatar

I have been doing using Forge to deploy Laravel 11 for about 10 days, and forge deployment interface works well with mysql (instead of SQLITE). Just use Forge's .env interface (the "Environment" side left sidebar navigation link visible when the "site" is chosen). Then make sure you have the correct variables on the server's version of the /env file, especially this one: DB_CONNECTION=mysql and then of course the host, port, DB, username and password for the server environment. You could SSH into the server and fix the file, but it is easier to use Forge's direct environment interface or the "Commands" interface on the left side of the Sites page to do other needed things like php artisan storage:link or php artisan migrate , etc.

Please or to participate in this conversation.