diff --git a/app/Http/Middleware/HandleInertiaRequests.php b/app/Http/Middleware/HandleInertiaRequests.php index e994f59..a06c634 100644 --- a/app/Http/Middleware/HandleInertiaRequests.php +++ b/app/Http/Middleware/HandleInertiaRequests.php @@ -39,6 +39,7 @@ class HandleInertiaRequests extends Middleware 'error' => $request->session()->get('error'), ], 'app_env' => config('app.env'), + 'app_version' => config('app.version'), ]; } } diff --git a/config/app.php b/config/app.php index 423eed5..6a22216 100644 --- a/config/app.php +++ b/config/app.php @@ -123,4 +123,6 @@ return [ 'store' => env('APP_MAINTENANCE_STORE', 'database'), ], + 'version' => env('APP_VERSION', '1.0.0'), + ]; diff --git a/resources/js/Layouts/AdminLayout.vue b/resources/js/Layouts/AdminLayout.vue index c6980c3..06d6b9d 100644 --- a/resources/js/Layouts/AdminLayout.vue +++ b/resources/js/Layouts/AdminLayout.vue @@ -115,6 +115,9 @@ const isSidebarOpen = ref(true); +
+ v{{ $page.props.app_version }} +
diff --git a/resources/js/Layouts/AuthenticatedLayout.vue b/resources/js/Layouts/AuthenticatedLayout.vue index 9bd3fda..b839bc4 100644 --- a/resources/js/Layouts/AuthenticatedLayout.vue +++ b/resources/js/Layouts/AuthenticatedLayout.vue @@ -195,6 +195,10 @@ const showingNavigationDropdown = ref(false);
+ +