From 91f3562cf50ee09ce88683a75bd98234d3300f4d Mon Sep 17 00:00:00 2001 From: bangnokia Date: Sun, 24 Mar 2024 04:58:52 +0700 Subject: [PATCH] wip --- app/Commands/CleanCommand.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; } }