@osherdo Set the value of APP_KEY to something that’s 32 characters long, and then run php artisan key:generate to generate a random, 32-character key.
@premsaurav before I am asking questions here - I am referring to the documentation and forums. only when I cannot find the answer/solution I am coming here to ask questions and get wiser. So I clearly say I couldn't find reliable source about how do I generate the .env file.
You say that but then I take 3 seconds to open up a new tab, go to laravel.com and check the install docs.
Application Key
The next thing you should do after installing Laravel is set your application key to a random string. If you installed Laravel via Composer or the Laravel installer, this key has already been set for you by the key:generate command. Typically, this string should be 32 characters long. The key can be set in the .env environment file. If you have not renamed the .env.example file to .env, you should do that now. If the application key is not set, your user sessions and other encrypted data will not be secure!