1
0
Fork 0
mirror of https://github.com/archtechx/laravel-tips.git synced 2025-12-12 13:24:03 +00:00
laravel-tips/content/tips/long-classes-can-be-split-into-small-single-use-traits.md
Samuel Štancl a955c3968b Week 24/2022
2022-06-19 21:46:45 +02:00

480 B

title tweet_id thread_slug author_username images created_at slug
Long classes can be split into small single-use traits 1538579137463406592 weekly-thread-2022-24 archtechx
https://pbs.twimg.com/media/FVSanUMUcAA5iRg.jpg
2022-06-19T17:47:06+00:00 long-classes-can-be-split-into-small-single-use-traits

💡 Create single-use traits to split up long classes into smaller parts

This way, all e.g. link-related logic can be contained within a single trait