mirror of
https://github.com/archtechx/laravel-tips.git
synced 2025-12-12 13:24:03 +00:00
545 B
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 |
|
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.