mirror of
https://github.com/archtechx/laravel-tips.git
synced 2025-12-12 05:14:04 +00:00
439 B
439 B
| title | tweet_id | thread_slug | author_username | images | created_at | slug | |
|---|---|---|---|---|---|---|---|
| Don't use model methods to retrieve data | 1272826433417752576 | laravel-clean-code-tactics | samuelstancl |
|
2020-06-16T09:40:44+00:00 | dont-use-model-methods-to-retrieve-data |
If you want to retrieve some data from a model, create an accessor.
Keep methods for things that change the model in some way.