Skip to content

Commit

Permalink
Fixes blade not forgetting compiled views on vie:clear (#44643)
Browse files Browse the repository at this point in the history
  • Loading branch information
nunomaduro authored Oct 18, 2022
1 parent 0bcd350 commit 1ef13f6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Illuminate/Foundation/Console/ViewClearCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ public function handle()
throw new RuntimeException('View path not found.');
}

$this->laravel['view.engine.resolver']
->resolve('blade')
->forgetCompiledOrNotExpired();

foreach ($this->files->glob("{$path}/*") as $view) {
$this->files->delete($view);
}
Expand Down

0 comments on commit 1ef13f6

Please sign in to comment.