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