Skip to content
This repository has been archived by the owner on Apr 10, 2020. It is now read-only.

Commit

Permalink
Fixed generating models
Browse files Browse the repository at this point in the history
  • Loading branch information
rossity committed Oct 29, 2018
1 parent e54bb02 commit 959c8fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Console/GenerateModelCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ protected function createModel()
$modelTemplate = $this->removeTag($modelTemplate, 'belongsTo');
} else {
$modelTemplate = $this->removeBlock($modelTemplate, 'belongsTo');
$modelTemplate = $this->removeBlock($modelTemplate, 'guardedAttributes');
$modelTemplate = str_replace(['{{guardedAttributes}}'], '', $modelTemplate);
}

$modelTemplate = $this->logActivity ? $this->removeTag($modelTemplate, 'logsActivity') : $this->removeBlock($modelTemplate, 'logsActivity');
Expand Down

0 comments on commit 959c8fa

Please sign in to comment.