if(env('MY_PROPERTY') !== null)
If there is a case that the property is defined with the empty value, you can also include that in your condition
if(env('MY_PROPERTY') !== null && env('MY_PROPERTY') !== '')
That's about it !
if(env('MY_PROPERTY') !== null)
If there is a case that the property is defined with the empty value, you can also include that in your condition
if(env('MY_PROPERTY') !== null && env('MY_PROPERTY') !== '')
That's about it !
Written by Tushar