get key form env in laravel 7 code example Example 1: get env app url laravel env('APP_URL') Example 2: laravel get env variable dd(env('APP_NAME'));