adspace
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