How to retrive/get current environment in laravel.



How to retrive/get current environment in laravel...

Answer / 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

More Laravel PHP Framework Interview Questions

What are the plateforms laravel homestead supports?

1 Answers  


What is design pattern in laravel?

1 Answers  


Do you know about laravel project?

1 Answers  


What does framework mean in programming?

1 Answers  


How to check request is ajax or not?

1 Answers  


What is open source software?

1 Answers  


Explain the request life cycle of laravel?

1 Answers  


Explain how to localize resource uris in laravel?

1 Answers  


How will you describe bundles in laravel?

1 Answers  


Explain the concept of events in laravel.

1 Answers  


What is uuid in laravel?

1 Answers  


What is route group in laravel?

1 Answers  


Categories