Skip to content
This repository has been archived by the owner on May 21, 2021. It is now read-only.

Commit

Permalink
Update Build command
Browse files Browse the repository at this point in the history
  • Loading branch information
hedii committed Jan 21, 2018
1 parent 261bb64 commit f686c9d
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions app/Console/Commands/BuildCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,19 @@ class BuildCommand extends Command
*/
public function handle(): bool
{
$this->comment('Running application migrations');
$this->comment('Running fresh application migrations');

$returnCode = $this->call('migrate');
$returnCode = $this->call('migrate:fresh');

if ($returnCode !== 0) {
$this->error('Unable run the application migrations');
$this->error('Unable run the fresh application migrations');

return false;
} else {
$this->info('Application migrations ok');
$this->info('Application fresh migrations ok');
$this->line('---');
}


$this->comment('Installing Laravel Passport');

$returnCode = $this->callSilent('passport:install');
Expand Down

0 comments on commit f686c9d

Please sign in to comment.