Skip to content

Commit

Permalink
Clear compiled views before creating the upgrade file
Browse files Browse the repository at this point in the history
Fix #136
  • Loading branch information
santigarcor committed May 21, 2017
1 parent 1f53703 commit 690325c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/commands/UpgradeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ protected function createMigration()
'laratrust'
);

$this->call('view:clear');
$output = $this->laravel->view->make('laratrust::generators.upgrade-migration')->with($data)->render();

if (!file_exists($migrationPath) && $fs = fopen($migrationPath, 'x')) {
Expand Down

0 comments on commit 690325c

Please sign in to comment.