diff --git a/src/Illuminate/Foundation/Console/ServeCommand.php b/src/Illuminate/Foundation/Console/ServeCommand.php
index f407b6be8358..462d1ff8ddc6 100644
--- a/src/Illuminate/Foundation/Console/ServeCommand.php
+++ b/src/Illuminate/Foundation/Console/ServeCommand.php
@@ -26,7 +26,7 @@ class ServeCommand extends Command
/**
* Execute the console command.
*
- * @return void
+ * @return int
*
* @throws \Exception
*/
@@ -36,7 +36,9 @@ public function handle()
$this->line("Laravel development server started: host()}:{$this->port()}>");
- passthru($this->serverCommand());
+ passthru($this->serverCommand(), $returnVar);
+
+ return $returnVar;
}
/**