Recently learning Laravel, with the version of 4.2, in the study of eloquent and then wrote an example to see two properties, Google a bit or not how to understand that you want to ask the following code
... protected $guard = array('email','password'); protected $fillable = array('nickname','email','password'); protected $hidden = array('password', 'remember_token');...
What is the role of each of the three properties?
Reply content:
Recently learning Laravel, with the version of 4.2, in the study of eloquent and then wrote an example to see two properties, Google a bit or not how to understand that you want to ask the following code
... protected $guard = array('email','password'); protected $fillable = array('nickname','email','password'); protected $hidden = array('password', 'remember_token');...
What is the role of each of the three properties?
The first two are blacklisted and whitelisted for AutoFill Mass assignment. A third party hides the attribute when converting an array or JSON.