diff --git a/laravel/request.php b/laravel/request.php index e78c943d..53744367 100644 --- a/laravel/request.php +++ b/laravel/request.php @@ -196,7 +196,7 @@ public static function time() */ public static function cli() { - return defined('STDIN'); + return defined('STDIN') || (substr(PHP_SAPI, 0, 3) == 'cgi' && getenv('TERM')); } /**