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

566 B

title tweet_id thread_slug author_username images created_at slug
Consider using helpers instead of facades. They can clean things up 1272826446717870081 laravel-clean-code-tactics samuelstancl
https://pbs.twimg.com/media/Ean7QGBXYAEt_l2.jpg
2021-04-06T16:07:35+00:00 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.