1
0
Fork 0
mirror of https://github.com/archtechx/laravel-tips.git synced 2025-12-12 21:34: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

13 lines
No EOL
480 B
Markdown

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