Skip to content

Commit 515e427

Browse files
committed
Clear removed files from cache
1 parent de6be83 commit 515e427

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/Commands/EraseCommand.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ public function handle()
5555
$this->files->delete($files);
5656
} elseif ($action === 'updated') {
5757
$this->comment('The updates to the following files can not be erased automatically.');
58+
} else {
59+
return;
5860
}
5961

6062
collect($files)->each(function ($file) {
@@ -63,6 +65,14 @@ public function handle()
6365

6466
$this->line('');
6567
});
68+
69+
unset($generated['created']);
70+
unset($generated['updated']);
71+
72+
$this->files->put(
73+
'.blueprint',
74+
$blueprint->dump($generated)
75+
);
6676
}
6777

6878
/**

0 commit comments

Comments
 (0)