Laravel PHP Developer Question:

Tell me how to get current environment in Laravel 5?

Laravel PHP Developer Interview Question
Laravel PHP Developer Interview Question

Answer:

You may access the current application environment via the environment method.

$environment = App::environment();
dd($environment);


Previous QuestionNext Question
Tell me in Which Language It Was Written?Tell me why Laravel over other PHP frameworks?