Eloquent , Intermediate , Laravel on 22 Feb 2019
In the post , we will discuss what happens behind the scenes when an attribute is accessed using above syntax. The explanation would also clarify how the accessors work in Eloquent. Accessors allow us to format/manipulate eloquent attribute values after they are fetched from DB by Model.
This post explains what happens behind the scenes when an eloquent model is accessed. This post requires a basic understanding of eloquent model so I would recommend reading it before going any further in below post.