Dotenv::required put outside of .env file check.

Dotenv::required is a helpful check for the existence of the ENV variables.