diff --git a/app/Console/Commands/ClearLogsCommand.php b/app/Console/Commands/ClearLogsCommand.php new file mode 100644 index 0000000..ac531d6 --- /dev/null +++ b/app/Console/Commands/ClearLogsCommand.php @@ -0,0 +1,26 @@ +info('Clearing logs...'); + + ServerLog::query()->delete(); + + File::cleanDirectory(Storage::disk('server-logs')->path('')); + + $this->info('Logs cleared!'); + } +}