From 0f8e402380076ae02db43dab6d9a6e65e18f9ff9 Mon Sep 17 00:00:00 2001 From: Prashant Singh Date: Thu, 4 Apr 2019 13:03:53 +0530 Subject: [PATCH 1/3] added version in configuration of Bagisto --- .env.example | 1 + config/app.php | 27 ++++++++++++++++----------- 2 files changed, 17 insertions(+), 11 deletions(-) diff --git a/.env.example b/.env.example index ef6c364c0..16e00691a 100644 --- a/.env.example +++ b/.env.example @@ -1,5 +1,6 @@ APP_NAME=Laravel APP_ENV=local +APP_VERSION=0.1.5 APP_KEY= APP_DEBUG=true APP_URL=http://localhost diff --git a/config/app.php b/config/app.php index d151dd0cf..6603e3b6d 100755 --- a/config/app.php +++ b/config/app.php @@ -130,22 +130,16 @@ return [ 'cipher' => 'AES-256-CBC', - /* - |-------------------------------------------------------------------------- - | Autoloaded Service Providers - |-------------------------------------------------------------------------- - | - | The service providers listed here will be automatically loaded on the - | request to your application. Feel free to add your own services to - | this array to grant expanded functionality to your applications. - | - */ - /* Code Editor */ 'editor' =>'vscode', + /* + Application Version + */ + 'version' => env('APP_VERSION', '0.1.5'), + /** * Blacklisting attributes while debugging */ @@ -165,6 +159,17 @@ return [ ], ], + /* + |-------------------------------------------------------------------------- + | Autoloaded Service Providers + |-------------------------------------------------------------------------- + | + | The service providers listed here will be automatically loaded on the + | request to your application. Feel free to add your own services to + | this array to grant expanded functionality to your applications. + | + */ + 'providers' => [ /* From 6381c9bcffcbe308eb2626c1f0f0a6d1802ab642 Mon Sep 17 00:00:00 2001 From: Prashant Singh Date: Thu, 4 Apr 2019 13:11:45 +0530 Subject: [PATCH 2/3] Added artisan command to display current version of Bagisto version --- app/Console/Commands/BagistoVersion.php | 42 +++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 app/Console/Commands/BagistoVersion.php diff --git a/app/Console/Commands/BagistoVersion.php b/app/Console/Commands/BagistoVersion.php new file mode 100644 index 000000000..2b6129701 --- /dev/null +++ b/app/Console/Commands/BagistoVersion.php @@ -0,0 +1,42 @@ +comment('v'.config('app.version')); + } +} From ed9413a1bc3a91a7e1d5bfe88a378dad5029fd92 Mon Sep 17 00:00:00 2001 From: Prashant Singh Date: Thu, 4 Apr 2019 13:29:48 +0530 Subject: [PATCH 3/3] syntax fixed --- app/Console/Commands/BagistoVersion.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Console/Commands/BagistoVersion.php b/app/Console/Commands/BagistoVersion.php index 2b6129701..411035072 100644 --- a/app/Console/Commands/BagistoVersion.php +++ b/app/Console/Commands/BagistoVersion.php @@ -37,6 +37,6 @@ class BagistoVersion extends Command */ public function handle() { - $this->comment('v'.config('app.version')); + $this->comment('v' . config('app.version')); } }