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') ]); } }