Skip to content

[5.6] Updated mass assignment exception wording#22565

Merged
taylorotwell merged 1 commit into
laravel:masterfrom
ok200paul:clarify-mass-assignment-exception-wording
Dec 29, 2017
Merged

[5.6] Updated mass assignment exception wording#22565
taylorotwell merged 1 commit into
laravel:masterfrom
ok200paul:clarify-mass-assignment-exception-wording

Conversation

@ok200paul
Copy link
Copy Markdown
Contributor

@ok200paul ok200paul commented Dec 29, 2017

Updated mass assignment exception wording for clarity; nominating the key alone is a little vague.

I was finding when running firstOrCreate() on a model where I neglected to update the $fillable array was returning an exception with the first key name in it each time. The fix itself was obvious and simple (ie updating $fillable), but I thought adding a couple of breadcrumbs for folks new to Laravel might help.

@GrahamCampbell GrahamCampbell changed the base branch from 5.5 to master December 29, 2017 12:43
@GrahamCampbell GrahamCampbell changed the title Updated mass assignment exception wording for clarity [5.6] Updated mass assignment exception wording Dec 29, 2017
@taylorotwell taylorotwell merged commit c7f14fb into laravel:master Dec 29, 2017
@deleugpn
Copy link
Copy Markdown
Contributor

Maybe this should be inside the exception class itself?

@ok200paul ok200paul deleted the clarify-mass-assignment-exception-wording branch January 1, 2018 01:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants