You can easily add attributes to a model in Laravel's Eloquent ORM that aren't in the database but can be made from existing attributes. People often call these "accessors."
This is how to use an accessor to add an attribute to a model:
- What is an Accessor?
In Laravel, you can define an accessor by making a method on your Eloquent model that follows this naming pattern:
get<AttributeName>Attribute
