env() does’t work (Can get value in .env file)

Could be PHP version issue. PHP 7.2 is recommended.