Detect environment based on LARAVEL_ENV property