adspace


How to retrive/get current environment in laravel.

Answer Posted / Ashvin Yadav

You can retrieve the current environment in Laravel by using the `app()` helper function and passing the Env class to it (`app('env')->get('APP_ENV')`) or by using the dot notation (`config('app.env')`).

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is current stable version of laravel?

870


What is latest version of laravel?

869


Tell us have you used lumen before?

808


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

839


How much laravel experience do you have?

815