When migrating my DB, this error appears. Below is my code followed by the error that I am getting when trying to run the migration.
Code
Please add ->nullable() on your field and make sure that all the fields you're referring to really exist.
->nullable()