A free open source IT asset/license management system
Move files
snipe1396c597ef5a
diff --git a/database/migrations/2025_10_13_102956_move_assetmodels_files.php b/database/migrations/2025_10_13_102956_move_assetmodels_files.phpnew file mode 100644index 0000000000..699a761b1f--- /dev/null+++ b/database/migrations/2025_10_13_102956_move_assetmodels_files.php@@ -0,0 +1,30 @@+<?php++use Illuminate\Database\Migrations\Migration;+use Illuminate\Support\Facades\Storage;++return new class extends Migration+{+ /**+ * Run the migrations.+ */+ public function up(): void+ {++ $assetmodelfiles = Storage::allFiles('private_uploads/assetmodels');++ foreach ($assetmodelfiles as $file) {+ Storage::writeStream('private_uploads/models/' . basename($file),+ Storage::readStream($file)+ );+ }+ }++ /**+ * Reverse the migrations.+ */+ public function down(): void+ {+ //+ }+};