From 045a42c250ed421e84f774f8619d7625934dcce1 Mon Sep 17 00:00:00 2001 From: Rumperuu Date: Wed, 24 Aug 2022 10:41:43 +0000 Subject: [PATCH] Move trip URL to .env --- config/app.php | 2 ++ routes/web.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/config/app.php b/config/app.php index ef76a7e..f8008d4 100644 --- a/config/app.php +++ b/config/app.php @@ -58,6 +58,8 @@ return [ 'asset_url' => env('ASSET_URL'), + 'trip' => env('TRIP'), + /* |-------------------------------------------------------------------------- | Application Timezone diff --git a/routes/web.php b/routes/web.php index c7aedef..f563875 100644 --- a/routes/web.php +++ b/routes/web.php @@ -20,7 +20,7 @@ Route::get('/', function () { 'timeout' => 3.0 ]); - $response = $client->get('trip/q0mwldvenxq09p2x18nj/user/zmld8ko6qy7d9j3xvq10/json'); + $response = $client->get('trip/'.config('app.trip').'/user/zmld8ko6qy7d9j3xvq10/json'); if ($response->getStatusCode() == 200) { $data = json_decode($response->getBody());