From b77c4988d768acb56dab0a08f99756fe36274d46 Mon Sep 17 00:00:00 2001 From: Mahe Karim Date: Mon, 30 May 2022 02:49:37 +0600 Subject: [PATCH] Version Variable Introduce --- .env.example | 1 + app/Http/Controllers/HydraController.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.env.example b/.env.example index c980f21..db70f0b 100644 --- a/.env.example +++ b/.env.example @@ -1,6 +1,7 @@ APP_NAME=Laravel APP_ENV=local APP_KEY= +APP_VERSION=1.0.0 APP_DEBUG=true APP_URL=http://localhost diff --git a/app/Http/Controllers/HydraController.php b/app/Http/Controllers/HydraController.php index 44562ba..cf3558e 100644 --- a/app/Http/Controllers/HydraController.php +++ b/app/Http/Controllers/HydraController.php @@ -14,7 +14,7 @@ class HydraController extends Controller public function version(){ return response([ - "version"=>"1.0.0" + "version"=> env('APP_VERSION') ]); } }