How to get current environment in Laravel 5 ?

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

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

Leave a Reply

Your email address will not be published. Required fields are marked *