Skip to content

Commit

Permalink
CrestApps#124 date format missing from model generator
Browse files Browse the repository at this point in the history
  • Loading branch information
steveijar committed Jul 9, 2021
1 parent 75a8792 commit 3fec8a7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Commands/Framework/CreateModelCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,8 @@ protected function getMutators(array $fields = null)
$content = $this->getStubContent('model-mutator-datetime');
$this->replaceFieldName($content, $field->name);

$this->replaceDateFormat($content, $field->dateFormat);

$mutators[] = $this->getMutator($field, $content);
}
}
Expand Down

0 comments on commit 3fec8a7

Please sign in to comment.