Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Guarded fields #20

Open
hkdobrev opened this issue Aug 6, 2013 · 0 comments
Open

Guarded fields #20

hkdobrev opened this issue Aug 6, 2013 · 0 comments

Comments

@hkdobrev
Copy link
Contributor

hkdobrev commented Aug 6, 2013

Eloquent ORM has a nice feature - guarded fields in a model.

Their purpose is to prevent some fields to be set by mass assignment.

A nice usage of this would be to protect the primary key, password fields and others to be mass assigned.

There is a an example here: http://four.laravel.com/docs/eloquent

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant