Skip to content

Commit

Permalink
Set exit status in serve command
Browse files Browse the repository at this point in the history
  • Loading branch information
alexwhitman committed Mar 25, 2018
1 parent 121e32d commit e8c3565
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Illuminate/Foundation/Console/ServeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class ServeCommand extends Command
/**
* Execute the console command.
*
* @return void
* @return int
*
* @throws \Exception
*/
Expand All @@ -36,7 +36,9 @@ public function handle()

$this->line("<info>Laravel development server started:</info> <http://{$this->host()}:{$this->port()}>");

passthru($this->serverCommand());
passthru($this->serverCommand(), $returnVar);

return $returnVar;
}

/**
Expand Down

0 comments on commit e8c3565

Please sign in to comment.