Hi @thitiphan
As said @lolafkok, you can’t use the env() function in a controller. It only works for configurations file 
You have to use the process.env object in order to retrieve your environment variable which are in the .envfile
Hi @thitiphan
As said @lolafkok, you can’t use the env() function in a controller. It only works for configurations file 
You have to use the process.env object in order to retrieve your environment variable which are in the .envfile