Add new database user to homestead.yaml

I have specified the second database in my file homestead.yamland it is created without crashing, but it uses the default database user homestead.

Is it possible to include a new user in homestead.yaml, or is it something I need to do only manually after starting and starting the firewall? I did not notice anything in the docs about this.

This is a Postgres database, if that matters.

+4
source share
1 answer

You cannot do this from the yaml file. Alternatively, you can write commands to create the user in the file after .sh inside the .homestead folder. Thus, after the virtual machine is created, it will be executed automatically, and your new user will be ready if you do not do it manually.

+4
source

All Articles