Laravel Artisan General Command: The env Command
Learn how to use the env command in Laravel to retrieve the name of the current framework environment. The environment name is determined by the value set in the .env file, particularly the APP_ENV entry. Execute php artisan env to see the current environment.