diff --git a/src/Facades/AppVersion.php b/src/Facades/AppVersion.php index f7e9cca..c6ed0e9 100644 --- a/src/Facades/AppVersion.php +++ b/src/Facades/AppVersion.php @@ -13,6 +13,7 @@ * @method static bool is7x() * @method static bool is8x() * @method static bool is9x() + * @method static bool is10x() * @method static int major() * @method static int minor() * @method static int patch() diff --git a/src/Support/AppVersion.php b/src/Support/AppVersion.php index 060c138..924944a 100644 --- a/src/Support/AppVersion.php +++ b/src/Support/AppVersion.php @@ -30,6 +30,11 @@ public function is9x(): bool return $this->major() === 9; } + public function is10x(): bool + { + return $this->major() === 10; + } + public function major(): int { return (int) Str::before($this->version(), '.');