diff --git a/src/Illuminate/Database/Query/Builder.php b/src/Illuminate/Database/Query/Builder.php index 2f9a3ab3245d..68f0031dffe8 100755 --- a/src/Illuminate/Database/Query/Builder.php +++ b/src/Illuminate/Database/Query/Builder.php @@ -1586,7 +1586,7 @@ public function exists() */ public function count($column = '*') { - return $this->aggregate(__FUNCTION__, array($column)); + return (int) $this->aggregate(__FUNCTION__, array($column)); } /**