Urgent.News

What's breaking now, across hundreds of outlets.

Tech

Migrating my own SaaS onto a new Laravel codebase: 9 things production taught me

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…

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.

Key issues encountered during the migration included:

1. 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.

2. Some receipts were "missing" due to path recording issues; a workaround involved checking both the recorded path and a fallback path under "documents/".

3. The cloud database required SSL, necessitating the addition of a CA bundle to the legacy connection settings.

4. The column storing bucket names was too short, requiring an update from 32 to 100 characters.

5. MySQL's index name length limit was 64 characters; a custom index name and schema test were added to prevent failures.

6. Livewire uploads, originally handled in a bucket, needed a workaround using a helper function to stream remote uploads to a temporary file.

7. Livewire's naming conventions for certain actions caused problems; renaming them to "confirmImport" and "uploadDocument" resolved the issue.

8. The category mapping process had to account for expanded categories and their transactions, with verification confirming each transaction's correct placement.

9. The output format was improved to be more user-friendly and informative during the import process.

The 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.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in Tech

TradingView Turtles Strategy: Does It Still Work?

The short version. This is a TradingView Turtles strategy backtest, a follow-up to my five-part series on the original Turtle rules.

  • TradingView Turtles Strategy based on Donchian channel breakouts
  • Strategy published on TradingView in 2015, 6,553 boosts
  • Positive results on strong upward markets, fails on flat/downward trends

State Machines for Email Verification APIs

State Machines for Email Verification APIs Email verification looks like a small feature until retries, expired tokens, duplicate requests, and delayed workers enter the picture.

The EDIFACT CONTRL, Decoded: The Receipt That Only Proves the Envelope Arrived

Most EDIFACT arguments start one message too late. A sender says "we sent it," a receiver says "we never got a usable file," and both are telling the truth — because they are talking about different…

  • EDIFACT CONTRL report confirms interchange receipt and syntax checks
  • Reports interchange, sender, and receiver details
  • Identifies errors at segment, element, or code value levels

JetBrains Mellum2.1 Instruct Ships Fast Local Agent Loops — Overlay Suggestion Latency Still Hits the WASAPI Floor

JetBrains Mellum2.1 Instruct: Fast Local Coding Agents Without the CoT Tax — Call Overlays Still Hit the WASAPI + Local STT Floor On 25 November 2026 JetBrains released Mellum2.1 Instruct, the…

  • JetBrains releases Mellum2.1 Instruct on 25 November 2026
  • Model bypasses chain-of-thought, reducing token production by ~50%
  • WASAPI floor limits latency, despite faster generation

More from Saturday, 28 November 2026 →