We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5992b01 commit 3aa385eCopy full SHA for 3aa385e
src/Support/Environment.php
@@ -0,0 +1,31 @@
1
+<?php
2
+
3
+namespace Native\Laravel\Support;
4
5
+class Environment
6
+{
7
+ public static function isWindows(): bool
8
+ {
9
+ return PHP_OS_FAMILY === 'Windows';
10
+ }
11
12
+ public static function isLinux(): bool
13
14
+ return PHP_OS_FAMILY === 'Linux';
15
16
17
+ public static function isMac(): bool
18
19
+ return PHP_OS_FAMILY === 'Darwin';
20
21
22
+ public static function isUnknown(): bool
23
24
+ return PHP_OS_FAMILY === 'Unknown';
25
26
27
+ public static function isUnixLike(): bool
28
29
+ return static::isLinux() || static::isMac();
30
31
+}
0 commit comments