laravel env values code example Example 1: laravel get env variable dd(env('APP_NAME')); Example 2: laravel use config use Illuminate\Support\Facades\Config;