SinghWithLaravel
3 months ago
787
13
Laravel

Not able to get ENV variable value in Laravel Controller.

Posted 3 months ago by SinghWithLaravel

I am not able to get ENV variables value in laravel controller. I have tried below two ways. -

env('MAIL_DRIVER');

And

$_ENV // array

Please sign in or create an account to participate in this conversation.