Skip to content

Commit d1be5e7

Browse files
committed
Command tips for windows
1 parent f65cec6 commit d1be5e7

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/support/App.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ public static function run()
2626
ini_set('display_errors', 'on');
2727
error_reporting(E_ALL);
2828

29+
if (DIRECTORY_SEPARATOR === '\\') {
30+
echo "Please run 'php windows.php' on windows system." . PHP_EOL;
31+
exit;
32+
}
33+
2934
if (class_exists(Dotenv::class) && file_exists(run_path('.env'))) {
3035
if (method_exists(Dotenv::class, 'createUnsafeImmutable')) {
3136
Dotenv::createUnsafeImmutable(run_path())->load();

0 commit comments

Comments
 (0)