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
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