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/dont-just-write-procedural-code-in-classes.md
2021-04-07 20:16:47 +02:00

14 lines
No EOL
540 B
Markdown

---
title: 'Don''t just write procedural code in classes'
tweet_id: '1272822462040899584'
thread_slug: laravel-clean-code-tactics
author_username: samuelstancl
images:
- 'https://pbs.twimg.com/media/Ean2u-YX0AEmwEd.jpg'
created_at: 2020-06-16T09:24:57+00:00
slug: dont-just-write-procedural-code-in-classes
---
This ties the previous tweet with the other tips here. OOP exists to make your code more readable, use it. Don't just write 400 line long procedural code in controller actions.
Here's code from my first Laravel project 😬