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/consider-using-helpers-instead-of-facades-they-can-clean-things-up.md
2021-04-06 18:27:18 +02:00

14 lines
No EOL
566 B
Markdown

---
title: 'Consider using helpers instead of facades. They can clean things up'
tweet_id: '1272826446717870081'
thread_slug: laravel-clean-code-tactics
author_username: samuelstancl
images:
- 'https://pbs.twimg.com/media/Ean7QGBXYAEt_l2.jpg'
created_at: 2021-04-06T16:07:35+00:00
slug: consider-using-helpers-instead-of-facades-they-can-clean-things-up
---
This is largely a matter of personal preference, but calling a global function instead of having to import a class and statically call a method feels nicer to me.
Bonus points for session('key') syntax.