> For the complete documentation index, see [llms.txt](https://talltips.novate.co.uk/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://talltips.novate.co.uk/laravel/alternatives-to-using-eloquent-accessor.md).

# Alternatives to using Eloquent Accessor

Using computed columns in MySQL

Article illustrating how it is possible to use computed columns in our database tables to create additional model fields other than by using accessors.

{% embed url="<https://pineco.de/using-computed-columns-in-laravel/>" %}

Particularly useful where the model is exported via API or as an array and needs additional derived data.
