In my .env file I have the following:
IMAP_HOSTNAME_TEST=imap.gmail.com
IMAP_USERNAME_TEST=myemail@gmail.com
IMAP_PASSWORD_TEST=mypw
Now I
As @Rajib pointed out, You can't access your env variables using config('myVariable')
config directory. I usually add to config/app.phpConfig::get('fileWhichContainsVariable.Variable'); using the Config FacadeProbably You will have to clear config cache using php artisan config:clear
AND
you will also have to restart server.