What is difference between use env('APP_ENV'), config('app.env') or App::environment() to get app environment?
<p>What is difference between use <code>env('APP_ENV')</code>, <code>config('app.env')</code> or <code>App::environment()</code> to get app environment?</p>

<p>I know that the <code>env('APP_ENV')</code> will to <code>$_ENV</code>, <code>config('app.env')</code> reads the configuration and <code>App::environment()</code> is an abstraction of all. And in my opinion the advantage is even this. <strong>Abstraction</strong>.</p>

<p>I do not know if there are other differences, such as the level of performance or security</p>