Skip to content

Commit

Permalink
Add feedback after model creation (#8)
Browse files Browse the repository at this point in the history
* Add feedback after model creation

* Apply fixes from StyleCI (#7)
  • Loading branch information
tiagomichaelsousa authored Jan 30, 2020
1 parent b2cd82e commit b87e04c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Commands/ResourceCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,11 @@ public function handle()
if (! $this->modelExists($this->model)) {
$this->info("The model {$this->model} does not exists.");

if ($this->confirm('Should I create it?', true)) {
$this->createModel();
if (! $this->confirm('Should I create it?', true)) {
return;
}

return;
$this->createModel();
}

$this->createResources();
Expand Down

0 comments on commit b87e04c

Please sign in to comment.