But the .env.example still exist because just imagine you upload some code to github or something like that.
Because the .env.example still exist other people can know how the .env file is set up.
Ok, if I understand this correctly is because .env gets ignored when commiting to Git but not .env.example. In other words it is a way to provide a file with most of what other people working on the same project will need without exposing personal info, am I close?
And of course the .env file is directly used by Laravel. The .env.example is the same as like the wp-config-sample.php file in Wordpress. A Blueprint for your Config File.