A free open source IT asset/license management system
Scaffold command
Marcus Moore655b0e67788f
diff --git a/app/Console/Commands/RemoveInvalidUploadDeleteActionLogItems.php b/app/Console/Commands/RemoveInvalidUploadDeleteActionLogItems.phpnew file mode 100644index 0000000000..fa884eefe4--- /dev/null+++ b/app/Console/Commands/RemoveInvalidUploadDeleteActionLogItems.php@@ -0,0 +1,36 @@+<?php++namespace App\Console\Commands;++use App\Models\Actionlog;+use Illuminate\Console\Command;++class RemoveInvalidUploadDeleteActionLogItems extends Command+{+ /**+ * The name and signature of the console command.+ *+ * @var string+ */+ protected $signature = 'snipeit:remove-invalid-upload-delete-action-log-items';++ /**+ * The console command description.+ *+ * @var string+ */+ protected $description = 'Command description';++ /**+ * Execute the console command.+ */+ public function handle()+ {+ $invalidLogs = Actionlog::query()+ ->where('action_type', 'upload deleted')+ ->whereNull('filename')+ ->get();+++ }+}