It's that I'm learning to make an api in phpLaravel but in the connections section in the file .env
it asks me for the connection credentials to the DB and I don't know where to get the fields DB_HOST
and DB_PORT
the database from cpanel, the others yes I know how to get them out.
I have seen tutorials and documentation but I still don't know how to access that info from cpanel.
in most apache servers in DB_HOST it is usually "localhost" while in PORT it is usually 3306, however I would recommend you try it first since I am not very sure about this, also check if you have the necessary accesses to modify the database.