adspace


What is the use of accessors and mutators in eloquent?

Answer Posted / Vinay Shankar Mani Tripathi

Accessors and mutators are methods defined on Eloquent models to automatically process data when reading from (accessors) or writing to (mutators) a database column. They help you format, manipulate, and encrypt/decrypt data before it's saved or retrieved.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

839


What is latest version of laravel?

869


Tell us have you used lumen before?

809


What is current stable version of laravel?

870


How much laravel experience do you have?

815