Good afternoon, I am currently taking a course and I am on the subject of routes in the course of laravel, I am following the lessons perfectly. I made the installations of all the requirements that are in class, like xampp, npm, composer etc. I did my first local project normally, I also did video lessons, and everything worked perfectly.
However, I work with Github during my classes, because I can easily consult my codes in the future and by the organization. The question is, when I submit the project to Git, and I make git clone
again on another terminal, I checked that the .env file is not coming again, this is because the .gitignore
file ignores the same.
The question is, is this the correct way to version a project in laravel using git? Ignoring .env and if I need to work on the project again, create an .env file based on .env.example and filling in the keys?
Detail, how do I make this process of creating an .env file based on .env.examples? Could someone help me?