adspace


In laravel, what is guarded attribute in a model?

Answer Posted / Vibhuti Pandey

In Laravel, a guarded attribute is a column that is protected from mass assignment. This means that when creating or updating a model instance, the values for these columns cannot be set through the fillable array. By default, all attributes are guarded, but you can override this by defining the $guarded property in your model.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is latest version of laravel?

869


How much laravel experience do you have?

815


Tell us have you used lumen before?

809


What is current stable version of laravel?

870


Do you know what version of laravel do you generally use?

839