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/this-pattern-is-brilliant-and-can-make-your-code-much-more-clean-and-consistent.md
2021-12-10 16:25:33 +01:00

545 B

title tweet_id thread_slug author_username images created_at slug
This pattern is brilliant and can make your code much more clean and consistent 1468596267458588676 weekly-thread-2021-49 LiamHammett
https://pbs.twimg.com/media/EX1RMP1X0AApuv6.jpg
2021-12-08T15:00:10+00:00 this-pattern-is-brilliant-and-can-make-your-code-much-more-clean-and-consistent

🔥 I often find myself keeping validation rules in a method on the model. This lets me reuse them wherever I may need - including in controllers or form requests.