From e08bac5c089cd449e60269c192bb1ea0f8c2ab2d Mon Sep 17 00:00:00 2001 From: musa11971 Date: Fri, 11 Jan 2019 20:55:54 +0100 Subject: [PATCH] Version 1.0.0 --- app/Helpers/JSONResult.php | 3 ++- config/app.php | 11 +++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/app/Helpers/JSONResult.php b/app/Helpers/JSONResult.php index a2489ce02..44478c2c7 100644 --- a/app/Helpers/JSONResult.php +++ b/app/Helpers/JSONResult.php @@ -59,7 +59,8 @@ public function show($doDie = true) { $printArr = [ 'success' => $this->success, - 'query_count' => (int) Config::get(AppServiceProvider::$queryCountConfigKey) + 'query_count' => (int) Config::get(AppServiceProvider::$queryCountConfigKey), + 'version' => config('app.version') ]; if(!$this->success && strlen($this->errorMessage)) { diff --git a/config/app.php b/config/app.php index bc3bdaebb..a758c96ae 100644 --- a/config/app.php +++ b/config/app.php @@ -15,6 +15,17 @@ 'name' => env('APP_NAME', 'Kurozora App'), + /* + |-------------------------------------------------------------------------- + | Application Version + |-------------------------------------------------------------------------- + | + | Current version of the application + | + */ + + 'version' => '1.0.0', + /* |-------------------------------------------------------------------------- | iOS app bundle ID