softDeletes(); }); } } } public function down(): void { $tables = ['projects', 'phases', 'layers', 'features', 'inspections']; foreach ($tables as $table) { if (Schema::hasColumn($table, 'deleted_at')) { Schema::table($table, function (Blueprint $t) { $t->dropSoftDeletes(); }); } } } };