diff --git a/app/Commands/CleanCommand.php b/app/Commands/CleanCommand.php index d76a392..03bb688 100644 --- a/app/Commands/CleanCommand.php +++ b/app/Commands/CleanCommand.php @@ -16,12 +16,14 @@ public function handle(): int { $finder = new Finder(); - $finder->in(getcwd() . '/public')->files('*.html'); + $finder->files()->in(getcwd() . '/public')->name('*.html'); foreach ($finder as $file) { unlink($file->getRealPath()); } $this->info('Cleaned the public directory'); + + return 0; } }