0
Good afternoon, I am currently taking a course and I am in the matter of routes in the course of Laravel, I am following the lessons perfectly. I did the installation of all the requirements that are in class, such as xampp, npm, Composer etc. I did my first local project normally, I did equally in the videos lessons, and everything worked perfectly.
However, I work with Github during my classes, because in the future I will easily consult my codes and by the organization. The point is this, when I send the project to Git, and do the git clone
again at another terminal, I checked that the file . env is not coming again, this is due to the fact of the file .gitignore
ignore the same.
The question is, is this the right way to get a project into git? Ignoring . env and in case I need to work on the project again, create a file . env based on .env.example and filling the keys?
Detail, how do I create a file . env based on .env.examples? Could someone help me?