1
0
Fork 0
mirror of https://github.com/archtechx/laravel-tips.git synced 2025-12-12 05:14:04 +00:00
laravel-tips/content/tips/create-model-methods-for-business-logic.md
2021-04-07 20:16:47 +02:00

505 B

title tweet_id thread_slug author_username images created_at slug
Create model methods for business logic 1272822448145272832 laravel-clean-code-tactics samuelstancl
https://pbs.twimg.com/media/Ean0WGiWAAAg4cu.jpg
2020-06-16T09:24:54+00:00 create-model-methods-for-business-logic

Your controllers should be simple. They should say things like "create invoice for order". They shouldn't be concerned with the details of how your database is structured.

Leave that to the model.