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

XerK's avatar
Level 1

How to deployment Laravel Nova

I need docs for deployment Laravel nova

0 likes
4 replies
aurawindsurfing's avatar
Level 50

Sorry is that what you are looking for?

https://nova.laravel.com/docs/1.0/installation.html#installing-nova

Just install it locally via composer and then do composer installon your server

There is also a little trick to actually install it directly from their repository without copying files. You need to add this to your composer.json

"repositories": [
        {
            "type": "composer",
            "url": "https://nova.laravel.com"
        }
    ],

and also create new file called auth.json

and put your credentials in there:

{
    "http-basic": {
        "nova.laravel.com": {
            "username": "foo",
            "password": "bar"
        }
    }
}

this way simple composer install will work and also update will work ;-)

Hope it helps!

1 like
abhi0725's avatar

Adding the credentials in version control is not a good idea.

instead run this on your server once to create the auth.json file in the root directory (outside current dir):

composer config http-basic.nova.laravel.com ${NOVA_USERNAME} ${NOVA_PASSWORD}

Now add a deployment script in your envoyer to copy this auth.json file and put that script before Envoyer runs composer install.

2 likes
monaye's avatar

Envoyer create a new folder on each deploy and I believe auth.json file needs to be within the same directory as composer.json. Do you know how to get the path of the cloned folder?

crynobone's avatar

You should be able to create the auth.json file on the global composer path.

Please or to participate in this conversation.