{
  "id": 22381456,
  "title": "Migrating my own SaaS onto a new Laravel codebase: 9 things production taught me",
  "url": "https://urgent.news/2026/11/28/migrating-my-own-saas-onto-a-new-laravel-codebase-9-things-production",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-11-28T14:25:27.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/gracesoftdev/migrating-my-own-saas-onto-a-new-laravel-codebase-9-things-production-taught-me-43g1"
  },
  "original_language": null,
  "account": "This article details the challenges and lessons learned from migrating the accounting and project management tool, GraceSoft Desk, from an older Laravel codebase to a newer version with Laravel 13 and Livewire 4. The migration process began with a boilerplate that quickly enabled feature development. However, moving six months of real data presented significant challenges that taught valuable lessons. The importer tool, which reads from the old database and writes to the new one, follows strict rules, being read-only and checking for exact copies of UUIDs, codes, timestamps, and deleted_at fields.\n\nKey issues encountered during the migration included:\n\n1. Production's schema was outdated, and the importer had to adapt by checking the existence of tables and columns, warning about missing ones and using default values for missing columns.\n2. Some receipts were \"missing\" due to path recording issues; a workaround involved checking both the recorded path and a fallback path under \"documents/\".\n3. The cloud database required SSL, necessitating the addition of a CA bundle to the legacy connection settings.\n4. The column storing bucket names was too short, requiring an update from 32 to 100 characters.\n5. MySQL's index name length limit was 64 characters; a custom index name and schema test were added to prevent failures.\n6. Livewire uploads, originally handled in a bucket, needed a workaround using a helper function to stream remote uploads to a temporary file.\n7. Livewire's naming conventions for certain actions caused problems; renaming them to \"confirmImport\" and \"uploadDocument\" resolved the issue.\n8. The category mapping process had to account for expanded categories and their transactions, with verification confirming each transaction's correct placement.\n9. The output format was improved to be more user-friendly and informative during the import process.\n\nThe article concludes with the author's reflections on the migration process, including decisions to change secrets handling, make optional steps explicit, and rehearse the migration process until it becomes routine.",
  "summary": "This week I rebuilt GraceSoft Desk, a small accounting and project tool I run my own business on, on a fresh Laravel 13 + Livewire 4 codebase. The new app started from our internal boilerplate, so the features went quickly. Moving six months of real records out of the old app took longer, and taught me more. Here's how the importer works, then what broke when it met production. The importer's…",
  "summary_source": "publisher",
  "key_points": [
    "Production's outdated schema required importer to adapt by checking table and column existence.",
    "Missing receipts resolved by checking both recorded path and fallback path under \"documents/\".",
    "Column storing bucket names updated from 32 to 100 characters to accommodate larger names."
  ],
  "editors_take": null,
  "opinion": false,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "machine_translated": false,
  "ai_generated": true,
  "disclaimer": "Accounts, briefs, key points, the editor’s take and translations are written by software from other outlets’ reporting and may contain errors. A summary whose summary_source is \"publisher\" is the outlet’s own feed text. Always check the linked original."
}