Parcourir la source

Removed GitVersionHelper exception

Will Browning il y a 3 ans
Parent
commit
d7b40a9259

+ 0 - 13
app/Exceptions/CouldNotGetVersionException.php

@@ -1,13 +0,0 @@
-<?php
-
-namespace App\Exceptions;
-
-use RuntimeException;
-
-class CouldNotGetVersionException extends RuntimeException
-{
-    public function __construct()
-    {
-        parent::__construct("Could not get version string (`git describe` failed)");
-    }
-}

+ 3 - 9
app/Helpers/GitVersionHelper.php

@@ -2,7 +2,6 @@
 
 
 namespace App\Helpers;
 namespace App\Helpers;
 
 
-use App\Exceptions\CouldNotGetVersionException;
 use Illuminate\Support\Facades\Cache;
 use Illuminate\Support\Facades\Cache;
 use Illuminate\Support\Str;
 use Illuminate\Support\Str;
 use Symfony\Component\Process\Exception\RuntimeException;
 use Symfony\Component\Process\Exception\RuntimeException;
@@ -33,7 +32,7 @@ class GitVersionHelper
 
 
         // Get version string from git
         // Get version string from git
         $command = 'git describe --tags $(git rev-list --tags --max-count=1)';
         $command = 'git describe --tags $(git rev-list --tags --max-count=1)';
-        $fail = false;
+
         if (class_exists('\Symfony\Component\Process\Process')) {
         if (class_exists('\Symfony\Component\Process\Process')) {
             try {
             try {
                 if (method_exists(Process::class, 'fromShellCommandline')) {
                 if (method_exists(Process::class, 'fromShellCommandline')) {
@@ -45,7 +44,8 @@ class GitVersionHelper
                 $process->mustRun();
                 $process->mustRun();
                 $output = $process->getOutput();
                 $output = $process->getOutput();
             } catch (RuntimeException $e) {
             } catch (RuntimeException $e) {
-                $fail = true;
+                // Do nothing
+                $output = null;
             }
             }
         } else {
         } else {
             // Remember current directory
             // Remember current directory
@@ -58,12 +58,6 @@ class GitVersionHelper
 
 
             // Change back
             // Change back
             chdir($dir);
             chdir($dir);
-
-            $fail = $output === null;
-        }
-
-        if ($fail) {
-            throw new CouldNotGetVersionException();
         }
         }
 
 
         return Str::of($output)->after('v')->trim();
         return Str::of($output)->after('v')->trim();

+ 11 - 11
composer.lock

@@ -1830,16 +1830,16 @@
         },
         },
         {
         {
             "name": "laravel/framework",
             "name": "laravel/framework",
-            "version": "v9.19.0",
+            "version": "v9.20.0",
             "source": {
             "source": {
                 "type": "git",
                 "type": "git",
                 "url": "https://github.com/laravel/framework.git",
                 "url": "https://github.com/laravel/framework.git",
-                "reference": "bbce25bd823133f6a5a724f2d62680b711f1d0df"
+                "reference": "c99868f1c9bf2f5d250993121838db905591864f"
             },
             },
             "dist": {
             "dist": {
                 "type": "zip",
                 "type": "zip",
-                "url": "https://api.github.com/repos/laravel/framework/zipball/bbce25bd823133f6a5a724f2d62680b711f1d0df",
-                "reference": "bbce25bd823133f6a5a724f2d62680b711f1d0df",
+                "url": "https://api.github.com/repos/laravel/framework/zipball/c99868f1c9bf2f5d250993121838db905591864f",
+                "reference": "c99868f1c9bf2f5d250993121838db905591864f",
                 "shasum": ""
                 "shasum": ""
             },
             },
             "require": {
             "require": {
@@ -2005,7 +2005,7 @@
                 "issues": "https://github.com/laravel/framework/issues",
                 "issues": "https://github.com/laravel/framework/issues",
                 "source": "https://github.com/laravel/framework"
                 "source": "https://github.com/laravel/framework"
             },
             },
-            "time": "2022-06-28T14:33:19+00:00"
+            "time": "2022-07-13T13:26:22+00:00"
         },
         },
         {
         {
             "name": "laravel/passport",
             "name": "laravel/passport",
@@ -9179,16 +9179,16 @@
         },
         },
         {
         {
             "name": "friendsofphp/php-cs-fixer",
             "name": "friendsofphp/php-cs-fixer",
-            "version": "v3.9.2",
+            "version": "v3.9.3",
             "source": {
             "source": {
                 "type": "git",
                 "type": "git",
                 "url": "https://github.com/FriendsOfPHP/PHP-CS-Fixer.git",
                 "url": "https://github.com/FriendsOfPHP/PHP-CS-Fixer.git",
-                "reference": "9b23c42f4d063f9e3aad823500e0940348b5ed63"
+                "reference": "bad87e63d7d87efa5e82aa4feafa52df6a37e6c1"
             },
             },
             "dist": {
             "dist": {
                 "type": "zip",
                 "type": "zip",
-                "url": "https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/zipball/9b23c42f4d063f9e3aad823500e0940348b5ed63",
-                "reference": "9b23c42f4d063f9e3aad823500e0940348b5ed63",
+                "url": "https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/zipball/bad87e63d7d87efa5e82aa4feafa52df6a37e6c1",
+                "reference": "bad87e63d7d87efa5e82aa4feafa52df6a37e6c1",
                 "shasum": ""
                 "shasum": ""
             },
             },
             "require": {
             "require": {
@@ -9256,7 +9256,7 @@
             "description": "A tool to automatically fix PHP code style",
             "description": "A tool to automatically fix PHP code style",
             "support": {
             "support": {
                 "issues": "https://github.com/FriendsOfPHP/PHP-CS-Fixer/issues",
                 "issues": "https://github.com/FriendsOfPHP/PHP-CS-Fixer/issues",
-                "source": "https://github.com/FriendsOfPHP/PHP-CS-Fixer/tree/v3.9.2"
+                "source": "https://github.com/FriendsOfPHP/PHP-CS-Fixer/tree/v3.9.3"
             },
             },
             "funding": [
             "funding": [
                 {
                 {
@@ -9264,7 +9264,7 @@
                     "type": "github"
                     "type": "github"
                 }
                 }
             ],
             ],
-            "time": "2022-07-11T17:53:00+00:00"
+            "time": "2022-07-13T09:53:20+00:00"
         },
         },
         {
         {
             "name": "hamcrest/hamcrest-php",
             "name": "hamcrest/hamcrest-php",

+ 48 - 48
package-lock.json

@@ -1969,9 +1969,9 @@
             "integrity": "sha512-Klz949h02Gz2uZCMGwDUSDS1YBlTdDDgbWHi+81l29tQALUtvz4rAYi5uoVhE5Lagoq6DeqAUlbrHvW/mXDgdQ=="
             "integrity": "sha512-Klz949h02Gz2uZCMGwDUSDS1YBlTdDDgbWHi+81l29tQALUtvz4rAYi5uoVhE5Lagoq6DeqAUlbrHvW/mXDgdQ=="
         },
         },
         "node_modules/@types/node": {
         "node_modules/@types/node": {
-            "version": "18.0.3",
-            "resolved": "https://registry.npmjs.org/@types/node/-/node-18.0.3.tgz",
-            "integrity": "sha512-HzNRZtp4eepNitP+BD6k2L6DROIDG4Q0fm4x+dwfsr6LGmROENnok75VGw40628xf+iR24WeMFcHuuBDUAzzsQ=="
+            "version": "18.0.4",
+            "resolved": "https://registry.npmjs.org/@types/node/-/node-18.0.4.tgz",
+            "integrity": "sha512-M0+G6V0Y4YV8cqzHssZpaNCqvYwlCiulmm0PwpNLF55r/+cT8Ol42CHRU1SEaYFH2rTwiiE1aYg/2g2rrtGdPA=="
         },
         },
         "node_modules/@types/parse-json": {
         "node_modules/@types/parse-json": {
             "version": "4.0.0",
             "version": "4.0.0",
@@ -2868,9 +2868,9 @@
             }
             }
         },
         },
         "node_modules/browserslist": {
         "node_modules/browserslist": {
-            "version": "4.21.1",
-            "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.21.1.tgz",
-            "integrity": "sha512-Nq8MFCSrnJXSc88yliwlzQe3qNe3VntIjhsArW9IJOEPSHNx23FalwApUVbzAWABLhYJJ7y8AynWI/XM8OdfjQ==",
+            "version": "4.21.2",
+            "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.21.2.tgz",
+            "integrity": "sha512-MonuOgAtUB46uP5CezYbRaYKBNt2LxP0yX+Pmj4LkcDFGkn9Cbpi83d9sCjwQDErXsIJSzY5oKGDbgOlF/LPAA==",
             "funding": [
             "funding": [
                 {
                 {
                     "type": "opencollective",
                     "type": "opencollective",
@@ -2882,9 +2882,9 @@
                 }
                 }
             ],
             ],
             "dependencies": {
             "dependencies": {
-                "caniuse-lite": "^1.0.30001359",
-                "electron-to-chromium": "^1.4.172",
-                "node-releases": "^2.0.5",
+                "caniuse-lite": "^1.0.30001366",
+                "electron-to-chromium": "^1.4.188",
+                "node-releases": "^2.0.6",
                 "update-browserslist-db": "^1.0.4"
                 "update-browserslist-db": "^1.0.4"
             },
             },
             "bin": {
             "bin": {
@@ -3057,9 +3057,9 @@
             }
             }
         },
         },
         "node_modules/clean-css": {
         "node_modules/clean-css": {
-            "version": "5.3.0",
-            "resolved": "https://registry.npmjs.org/clean-css/-/clean-css-5.3.0.tgz",
-            "integrity": "sha512-YYuuxv4H/iNb1Z/5IbMRoxgrzjWGhOEFfd+groZ5dMCVkpENiMZmwspdrzBo9286JjM1gZJPAyL7ZIdzuvu2AQ==",
+            "version": "5.3.1",
+            "resolved": "https://registry.npmjs.org/clean-css/-/clean-css-5.3.1.tgz",
+            "integrity": "sha512-lCr8OHhiWCTw4v8POJovCoh4T7I9U11yVsPjMWWnnMmp9ZowCxyad1Pathle/9HjaDp+fdQKjO9fQydE6RHTZg==",
             "dependencies": {
             "dependencies": {
                 "source-map": "~0.6.0"
                 "source-map": "~0.6.0"
             },
             },
@@ -4018,9 +4018,9 @@
             "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow=="
             "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow=="
         },
         },
         "node_modules/electron-to-chromium": {
         "node_modules/electron-to-chromium": {
-            "version": "1.4.187",
-            "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.187.tgz",
-            "integrity": "sha512-t3iFLHVIMhB8jGZ+8ui951nz6Bna5qKfhxezG3wzXdBJ79qFKPsE2chjjVFNqC1ewhfrPQrw9pmVeo4FFpZeQA=="
+            "version": "1.4.191",
+            "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.191.tgz",
+            "integrity": "sha512-MeEaiuoSFh4G+rrN+Ilm1KJr8pTTZloeLurcZ+PRcthvdK1gWThje+E6baL7/7LoNctrzCncavAG/j/vpES9jg=="
         },
         },
         "node_modules/elliptic": {
         "node_modules/elliptic": {
             "version": "6.5.4",
             "version": "6.5.4",
@@ -4882,9 +4882,9 @@
             }
             }
         },
         },
         "node_modules/html-minifier-terser/node_modules/terser": {
         "node_modules/html-minifier-terser/node_modules/terser": {
-            "version": "4.8.0",
-            "resolved": "https://registry.npmjs.org/terser/-/terser-4.8.0.tgz",
-            "integrity": "sha512-EAPipTNeWsb/3wLPeup1tVPaXfIaU68xMnVdPafIL1TV05OhASArYyIfFvnvJCNrR2NIOvDVNNTFRa+Re2MWyw==",
+            "version": "4.8.1",
+            "resolved": "https://registry.npmjs.org/terser/-/terser-4.8.1.tgz",
+            "integrity": "sha512-4GnLC0x667eJG0ewJTa6z/yXrbLGv80D9Ru6HIpCQmO+Q4PfEtBFi0ObSckqwL6VyQv/7ENJieXHo2ANmdQwgw==",
             "dependencies": {
             "dependencies": {
                 "commander": "^2.20.0",
                 "commander": "^2.20.0",
                 "source-map": "~0.6.1",
                 "source-map": "~0.6.1",
@@ -5587,9 +5587,9 @@
             }
             }
         },
         },
         "node_modules/lint-staged/node_modules/commander": {
         "node_modules/lint-staged/node_modules/commander": {
-            "version": "9.3.0",
-            "resolved": "https://registry.npmjs.org/commander/-/commander-9.3.0.tgz",
-            "integrity": "sha512-hv95iU5uXPbK83mjrJKuZyFM/LBAoCV/XhVGkS5Je6tl7sxr6A0ITMw5WoRV46/UaJ46Nllm3Xt7IaJhXTIkzw==",
+            "version": "9.4.0",
+            "resolved": "https://registry.npmjs.org/commander/-/commander-9.4.0.tgz",
+            "integrity": "sha512-sRPT+umqkz90UA8M1yqYfnHlZA7fF6nSphDtxeywPZ49ysjxDQybzk13CL+mXekDRG92skbcqCLVovuCusNmFw==",
             "dev": true,
             "dev": true,
             "engines": {
             "engines": {
                 "node": "^12.20.0 || >=14"
                 "node": "^12.20.0 || >=14"
@@ -8308,9 +8308,9 @@
             }
             }
         },
         },
         "node_modules/terser": {
         "node_modules/terser": {
-            "version": "5.14.1",
-            "resolved": "https://registry.npmjs.org/terser/-/terser-5.14.1.tgz",
-            "integrity": "sha512-+ahUAE+iheqBTDxXhTisdA8hgvbEG1hHOQ9xmNjeUJSoi6DU/gMrKNcfZjHkyY6Alnuyc+ikYJaxxfHkT3+WuQ==",
+            "version": "5.14.2",
+            "resolved": "https://registry.npmjs.org/terser/-/terser-5.14.2.tgz",
+            "integrity": "sha512-oL0rGeM/WFQCUd0y2QrWxYnq7tfSuKBiqTjRPWrRgB46WD/kiwHwF8T23z78H6Q6kGCuuHcPB+KULHRdxvVGQA==",
             "dependencies": {
             "dependencies": {
                 "@jridgewell/source-map": "^0.3.2",
                 "@jridgewell/source-map": "^0.3.2",
                 "acorn": "^8.5.0",
                 "acorn": "^8.5.0",
@@ -10708,9 +10708,9 @@
             "integrity": "sha512-Klz949h02Gz2uZCMGwDUSDS1YBlTdDDgbWHi+81l29tQALUtvz4rAYi5uoVhE5Lagoq6DeqAUlbrHvW/mXDgdQ=="
             "integrity": "sha512-Klz949h02Gz2uZCMGwDUSDS1YBlTdDDgbWHi+81l29tQALUtvz4rAYi5uoVhE5Lagoq6DeqAUlbrHvW/mXDgdQ=="
         },
         },
         "@types/node": {
         "@types/node": {
-            "version": "18.0.3",
-            "resolved": "https://registry.npmjs.org/@types/node/-/node-18.0.3.tgz",
-            "integrity": "sha512-HzNRZtp4eepNitP+BD6k2L6DROIDG4Q0fm4x+dwfsr6LGmROENnok75VGw40628xf+iR24WeMFcHuuBDUAzzsQ=="
+            "version": "18.0.4",
+            "resolved": "https://registry.npmjs.org/@types/node/-/node-18.0.4.tgz",
+            "integrity": "sha512-M0+G6V0Y4YV8cqzHssZpaNCqvYwlCiulmm0PwpNLF55r/+cT8Ol42CHRU1SEaYFH2rTwiiE1aYg/2g2rrtGdPA=="
         },
         },
         "@types/parse-json": {
         "@types/parse-json": {
             "version": "4.0.0",
             "version": "4.0.0",
@@ -11448,13 +11448,13 @@
             }
             }
         },
         },
         "browserslist": {
         "browserslist": {
-            "version": "4.21.1",
-            "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.21.1.tgz",
-            "integrity": "sha512-Nq8MFCSrnJXSc88yliwlzQe3qNe3VntIjhsArW9IJOEPSHNx23FalwApUVbzAWABLhYJJ7y8AynWI/XM8OdfjQ==",
+            "version": "4.21.2",
+            "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.21.2.tgz",
+            "integrity": "sha512-MonuOgAtUB46uP5CezYbRaYKBNt2LxP0yX+Pmj4LkcDFGkn9Cbpi83d9sCjwQDErXsIJSzY5oKGDbgOlF/LPAA==",
             "requires": {
             "requires": {
-                "caniuse-lite": "^1.0.30001359",
-                "electron-to-chromium": "^1.4.172",
-                "node-releases": "^2.0.5",
+                "caniuse-lite": "^1.0.30001366",
+                "electron-to-chromium": "^1.4.188",
+                "node-releases": "^2.0.6",
                 "update-browserslist-db": "^1.0.4"
                 "update-browserslist-db": "^1.0.4"
             }
             }
         },
         },
@@ -11576,9 +11576,9 @@
             }
             }
         },
         },
         "clean-css": {
         "clean-css": {
-            "version": "5.3.0",
-            "resolved": "https://registry.npmjs.org/clean-css/-/clean-css-5.3.0.tgz",
-            "integrity": "sha512-YYuuxv4H/iNb1Z/5IbMRoxgrzjWGhOEFfd+groZ5dMCVkpENiMZmwspdrzBo9286JjM1gZJPAyL7ZIdzuvu2AQ==",
+            "version": "5.3.1",
+            "resolved": "https://registry.npmjs.org/clean-css/-/clean-css-5.3.1.tgz",
+            "integrity": "sha512-lCr8OHhiWCTw4v8POJovCoh4T7I9U11yVsPjMWWnnMmp9ZowCxyad1Pathle/9HjaDp+fdQKjO9fQydE6RHTZg==",
             "requires": {
             "requires": {
                 "source-map": "~0.6.0"
                 "source-map": "~0.6.0"
             }
             }
@@ -12295,9 +12295,9 @@
             "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow=="
             "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow=="
         },
         },
         "electron-to-chromium": {
         "electron-to-chromium": {
-            "version": "1.4.187",
-            "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.187.tgz",
-            "integrity": "sha512-t3iFLHVIMhB8jGZ+8ui951nz6Bna5qKfhxezG3wzXdBJ79qFKPsE2chjjVFNqC1ewhfrPQrw9pmVeo4FFpZeQA=="
+            "version": "1.4.191",
+            "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.191.tgz",
+            "integrity": "sha512-MeEaiuoSFh4G+rrN+Ilm1KJr8pTTZloeLurcZ+PRcthvdK1gWThje+E6baL7/7LoNctrzCncavAG/j/vpES9jg=="
         },
         },
         "elliptic": {
         "elliptic": {
             "version": "6.5.4",
             "version": "6.5.4",
@@ -12930,9 +12930,9 @@
                     "integrity": "sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA=="
                     "integrity": "sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA=="
                 },
                 },
                 "terser": {
                 "terser": {
-                    "version": "4.8.0",
-                    "resolved": "https://registry.npmjs.org/terser/-/terser-4.8.0.tgz",
-                    "integrity": "sha512-EAPipTNeWsb/3wLPeup1tVPaXfIaU68xMnVdPafIL1TV05OhASArYyIfFvnvJCNrR2NIOvDVNNTFRa+Re2MWyw==",
+                    "version": "4.8.1",
+                    "resolved": "https://registry.npmjs.org/terser/-/terser-4.8.1.tgz",
+                    "integrity": "sha512-4GnLC0x667eJG0ewJTa6z/yXrbLGv80D9Ru6HIpCQmO+Q4PfEtBFi0ObSckqwL6VyQv/7ENJieXHo2ANmdQwgw==",
                     "requires": {
                     "requires": {
                         "commander": "^2.20.0",
                         "commander": "^2.20.0",
                         "source-map": "~0.6.1",
                         "source-map": "~0.6.1",
@@ -13417,9 +13417,9 @@
             },
             },
             "dependencies": {
             "dependencies": {
                 "commander": {
                 "commander": {
-                    "version": "9.3.0",
-                    "resolved": "https://registry.npmjs.org/commander/-/commander-9.3.0.tgz",
-                    "integrity": "sha512-hv95iU5uXPbK83mjrJKuZyFM/LBAoCV/XhVGkS5Je6tl7sxr6A0ITMw5WoRV46/UaJ46Nllm3Xt7IaJhXTIkzw==",
+                    "version": "9.4.0",
+                    "resolved": "https://registry.npmjs.org/commander/-/commander-9.4.0.tgz",
+                    "integrity": "sha512-sRPT+umqkz90UA8M1yqYfnHlZA7fF6nSphDtxeywPZ49ysjxDQybzk13CL+mXekDRG92skbcqCLVovuCusNmFw==",
                     "dev": true
                     "dev": true
                 },
                 },
                 "lilconfig": {
                 "lilconfig": {
@@ -15357,9 +15357,9 @@
             "integrity": "sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ=="
             "integrity": "sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ=="
         },
         },
         "terser": {
         "terser": {
-            "version": "5.14.1",
-            "resolved": "https://registry.npmjs.org/terser/-/terser-5.14.1.tgz",
-            "integrity": "sha512-+ahUAE+iheqBTDxXhTisdA8hgvbEG1hHOQ9xmNjeUJSoi6DU/gMrKNcfZjHkyY6Alnuyc+ikYJaxxfHkT3+WuQ==",
+            "version": "5.14.2",
+            "resolved": "https://registry.npmjs.org/terser/-/terser-5.14.2.tgz",
+            "integrity": "sha512-oL0rGeM/WFQCUd0y2QrWxYnq7tfSuKBiqTjRPWrRgB46WD/kiwHwF8T23z78H6Q6kGCuuHcPB+KULHRdxvVGQA==",
             "requires": {
             "requires": {
                 "@jridgewell/source-map": "^0.3.2",
                 "@jridgewell/source-map": "^0.3.2",
                 "acorn": "^8.5.0",
                 "acorn": "^8.5.0",

+ 7 - 5
resources/views/layouts/app.blade.php

@@ -31,11 +31,13 @@
         <notifications position="bottom right" />
         <notifications position="bottom right" />
     </div>
     </div>
 
 
-    <footer>
-      <div class="max-w-3xl mx-auto px-4 sm:px-6 lg:px-8 lg:max-w-7xl">
-        <div class="border-t border-grey-200 py-4 text-sm text-grey-500 text-center"><a href="https://github.com/anonaddy/anonaddy/releases/tag/v{{ App\Helpers\GitVersionHelper::version() }}" target="_blank" rel="nofollow noreferrer noopener" class="block sm:inline">v{{ App\Helpers\GitVersionHelper::version() }}</a></div>
-      </div>
-    </footer>
+    @if(App\Helpers\GitVersionHelper::version())
+        <footer>
+        <div class="max-w-3xl mx-auto px-4 sm:px-6 lg:px-8 lg:max-w-7xl">
+            <div class="border-t border-grey-200 py-4 text-sm text-grey-500 text-center"><a href="https://github.com/anonaddy/anonaddy/releases/tag/v{{ App\Helpers\GitVersionHelper::version() }}" target="_blank" rel="nofollow noreferrer noopener" class="block sm:inline">v{{ App\Helpers\GitVersionHelper::version() }}</a></div>
+        </div>
+        </footer>
+    @endif
 
 
     <!-- Scripts -->
     <!-- Scripts -->
     <script src="{{ mix('js/app.js') }}"></script>
     <script src="{{ mix('js/app.js') }}"></script>