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-action-classes.md
2021-04-06 18:27:18 +02:00

472 B

title tweet_id thread_slug author_username images created_at slug
Create action classes 1272822450137546753 laravel-clean-code-tactics samuelstancl
https://pbs.twimg.com/media/Ean0gvIWsAAIfxK.jpg
2021-04-06T16:07:26+00:00 create-action-classes

Let's expand on the previous example. Sometimes, creating a class for a single action can clean things up.

Models should encapsulate the business logic related to them, but they shouldn't be too big.