Reputation: 331
I just added a new column with php artisan make:migration
, and after that I called updateOrCreate
method hoping to filling the new column with values on all the existing records.
But nothing happened. I tracked down and found that the parameter for the new column was passed right to updateOrCreate
method. But why was it not working? Thanks.
Upvotes: 0
Views: 494
Reputation: 16339
Just to close the question off and give it an answer, as Jeemusu pointed out, you needed to add the new column to your $fillable
array inside the table model - thus allowing it to be inserted in to your database.
Upvotes: 1