This is part of the Semicolon&Sons Code Diary - consisting of lessons learned on the job. You're in the workflows category.
Last Updated: 2025-11-03
In Project S, I wanted to extract the address fields to a separate model. I did this as below.
<? php
// before
protected $fillable = [
    'gender', 'title', 'first_name', 'last_name',
    'company_name', 
    'street', 'house_number', 'postalcode', 
    'url', 'email',
    'phone', 'fax', 'district',
  ]
// after: street, house_number etc. removed
protected $fillable = [
    'gender', 'title', 'first_name', 'last_name',
    'company_name', 
    'url', 'email',
    'phone', 'fax', 'district',
  ]
Having a change of heart, I hit undo on my editor. When I ran my tests, which
worked before the change back and forth, I got weird failures... the data was
not set on the Advisor. 
The real issue was I had not undone all the changes. I should have used git to
guarantee this.
git
reset --hard instead of the more risky "undo in editor" strategy. (Proviso:
remember to reseed local DB if you migrated)