adspace


How to retrive current environment in laravel?

Answer Posted / Nishu Agrawal

To get the current application environment in Laravel, use the `app()` helper function and call the `environment()` method on the Application instance:
`$env = app()->environment();`

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Tell us have you used lumen before?

809


How much laravel experience do you have?

815


Do you know what version of laravel do you generally use?

839


What is latest version of laravel?

869


What is current stable version of laravel?

870